aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-03-06 15:12:33 -0800
committerGraydon Hoare <[email protected]>2011-03-06 15:12:33 -0800
commit138c55a69d44371e4de04ed538c787dec46a7200 (patch)
treeb5944fd3adcf3aad72df764afec7be3598d602d7 /src/comp
parentCorrect signatures and arguments associated with call into vec_append_glue. (diff)
downloadrust-138c55a69d44371e4de04ed538c787dec46a7200.tar.xz
rust-138c55a69d44371e4de04ed538c787dec46a7200.zip
Fix return value on trans_vec_add.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index c30373e2..dde5aa60 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -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));
}