Fix bug in trans_for, un-XFAIL linear-for-loop.rs.
This commit is contained in:
parent
6daec4004a
commit
51542b279f
@ -456,6 +456,7 @@ TEST_XFAILS_RUSTC := $(filter-out \
|
||||
large-records.rs \
|
||||
lazy-init.rs \
|
||||
lazy-and-or.rs \
|
||||
linear-for-loop.rs \
|
||||
multiline-comment.rs \
|
||||
obj-drop.rs \
|
||||
obj-recursion.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());
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user