rustc: Fix LLVM type error that occurred when translating large unique vector literals

This commit is contained in:
Patrick Walton 2011-06-14 14:33:19 -07:00
parent 36755e42df
commit bd18860be7

View File

@ -5885,7 +5885,7 @@ fn trans_ivec(@block_ctxt bcx, &vec[@ast::expr] args, &ast::ann ann)
llfirsteltptr = C_null(T_ptr(llunitty));
} else {
auto llheapsz = bcx.build.Add(llsize_of(llheapty), lllen);
rslt = trans_raw_malloc(bcx, llheapty, llheapsz);
rslt = trans_raw_malloc(bcx, T_ptr(llheapty), llheapsz);
bcx = rslt.bcx;
auto llheapptr = rslt.val;