Fix return value on trans_vec_add.

This commit is contained in:
Graydon Hoare 2011-03-06 15:12:33 -08:00
parent 3eb20f3f6e
commit 138c55a69d

View File

@ -2484,7 +2484,8 @@ fn trans_vec_add(@block_ctxt cx, @ty.t t,
auto tmp = r.val;
find_scope_cx(cx).cleanups += clean(bind drop_ty(_, tmp, t));
r = copy_ty(r.bcx, INIT, tmp, lhs, t);
ret trans_vec_append(r.bcx, t, tmp, rhs);
auto bcx = trans_vec_append(r.bcx, t, tmp, rhs).bcx;
ret res(bcx, load_scalar_or_boxed(bcx, tmp, t));
}