Skip to content

Commit bd18860

Browse files
committed
rustc: Fix LLVM type error that occurred when translating large unique vector literals
1 parent 36755e4 commit bd18860

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5885,7 +5885,7 @@ fn trans_ivec(@block_ctxt bcx, &vec[@ast::expr] args, &ast::ann ann)
58855885
llfirsteltptr = C_null(T_ptr(llunitty));
58865886
} else {
58875887
auto llheapsz = bcx.build.Add(llsize_of(llheapty), lllen);
5888-
rslt = trans_raw_malloc(bcx, llheapty, llheapsz);
5888+
rslt = trans_raw_malloc(bcx, T_ptr(llheapty), llheapsz);
58895889
bcx = rslt.bcx;
58905890
auto llheapptr = rslt.val;
58915891

0 commit comments

Comments
 (0)