Skip to content

Commit 138c55a

Browse files
committed
Fix return value on trans_vec_add.
1 parent 3eb20f3 commit 138c55a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/comp/middle/trans.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2484,7 +2484,8 @@ fn trans_vec_add(@block_ctxt cx, @ty.t t,
24842484
auto tmp = r.val;
24852485
find_scope_cx(cx).cleanups += clean(bind drop_ty(_, tmp, t));
24862486
r = copy_ty(r.bcx, INIT, tmp, lhs, t);
2487-
ret trans_vec_append(r.bcx, t, tmp, rhs);
2487+
auto bcx = trans_vec_append(r.bcx, t, tmp, rhs).bcx;
2488+
ret res(bcx, load_scalar_or_boxed(bcx, tmp, t));
24882489
}
24892490

24902491

0 commit comments

Comments
 (0)