Skip to content

Commit d0b3238

Browse files
committed
---
yaml --- r: 1497 b: refs/heads/master c: 7ab58db h: refs/heads/master i: 1495: 051468b v: v3
1 parent ff3e34b commit d0b3238

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 675f762621a0e2bb7d746e82bcafa05650786b94
2+
refs/heads/master: 7ab58db4d02443fdfd68e135224a79fe3a212bda

trunk/src/comp/middle/trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1071,8 +1071,8 @@ fn trans_raw_malloc(@block_ctxt cx, TypeRef llptr_ty, ValueRef llsize)
10711071

10721072
fn trans_malloc_without_cleanup(@block_ctxt cx, @ty.t t) -> result {
10731073
auto llty = type_of(cx.fcx.ccx, t);
1074-
auto rslt = size_of(cx, t);
1075-
ret trans_raw_malloc(rslt.bcx, llty, rslt.val);
1074+
auto llsize = llsize_of(llvm.LLVMGetElementType(llty));
1075+
ret trans_raw_malloc(cx, llty, llsize);
10761076
}
10771077

10781078
fn trans_malloc(@block_ctxt cx, @ty.t t) -> result {

0 commit comments

Comments
 (0)