aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-01-21 08:25:13 -0800
committerGraydon Hoare <[email protected]>2011-01-21 08:25:13 -0800
commit51542b279fcae0f740a76b631ce0fbcdf4c7cf5e (patch)
treef20d9b943ff4aebef3a212a3e28571f3472dbe8a /src/comp
parentFirst cut of trans_for. (diff)
downloadrust-51542b279fcae0f740a76b631ce0fbcdf4c7cf5e.tar.xz
rust-51542b279fcae0f740a76b631ce0fbcdf4c7cf5e.zip
Fix bug in trans_for, un-XFAIL linear-for-loop.rs.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/middle/trans.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/comp/middle/trans.rs b/src/comp/middle/trans.rs
index 1a703d0a..57f5b002 100644
--- a/src/comp/middle/trans.rs
+++ b/src/comp/middle/trans.rs
@@ -1808,7 +1808,7 @@ fn trans_for(@block_ctxt cx,
cx.build.Br(scope_cx.llbb);
auto local_res = alloc_local(scope_cx, local);
auto bcx = copy_ty(local_res.bcx, true, local_res.val, curr, t).bcx;
- trans_block(bcx, body);
+ bcx = trans_block(bcx, body).bcx;
bcx.build.Br(next_cx.llbb);
ret res(next_cx, C_nil());
}