rustc: Use llsize_of rather than size_of in trans_malloc_without_cleanup(). Should put out burning tinderbox...
This commit is contained in:
parent
675f762621
commit
7ab58db4d0
@ -1071,8 +1071,8 @@ fn trans_raw_malloc(@block_ctxt cx, TypeRef llptr_ty, ValueRef llsize)
|
||||
|
||||
fn trans_malloc_without_cleanup(@block_ctxt cx, @ty.t t) -> result {
|
||||
auto llty = type_of(cx.fcx.ccx, t);
|
||||
auto rslt = size_of(cx, t);
|
||||
ret trans_raw_malloc(rslt.bcx, llty, rslt.val);
|
||||
auto llsize = llsize_of(llvm.LLVMGetElementType(llty));
|
||||
ret trans_raw_malloc(cx, llty, llsize);
|
||||
}
|
||||
|
||||
fn trans_malloc(@block_ctxt cx, @ty.t t) -> result {
|
||||
|
Loading…
x
Reference in New Issue
Block a user