Skip to content

Commit 3854a8a

Browse files
committed
---
yaml --- r: 1526 b: refs/heads/master c: 60657fa h: refs/heads/master v: v3
1 parent b60604f commit 3854a8a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-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: 2cbfb8795d48028f216ffcaf921add36b9d60499
2+
refs/heads/master: 60657fa8aa1706fec7925b74dffdb1a0c82ceb0b

trunk/src/comp/middle/trans.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2470,10 +2470,11 @@ fn trans_vec_add(@block_ctxt cx, @ty.t t,
24702470
ValueRef lhs, ValueRef rhs) -> result {
24712471
auto r = alloc_ty(cx, t);
24722472
auto tmp = r.val;
2473-
find_scope_cx(cx).cleanups += clean(bind drop_ty(_, tmp, t));
24742473
r = copy_ty(r.bcx, INIT, tmp, lhs, t);
24752474
auto bcx = trans_vec_append(r.bcx, t, tmp, rhs).bcx;
2476-
ret res(bcx, load_scalar_or_boxed(bcx, tmp, t));
2475+
tmp = load_scalar_or_boxed(bcx, tmp, t);
2476+
find_scope_cx(cx).cleanups += clean(bind drop_ty(_, tmp, t));
2477+
ret res(bcx, tmp);
24772478
}
24782479

24792480

0 commit comments

Comments
 (0)