Skip to content

Commit 67418ab

Browse files
committed
---
yaml --- r: 1591 b: refs/heads/master c: 7505c1f h: refs/heads/master i: 1589: c5417be 1587: 43b38ef 1583: 7e109d3 v: v3
1 parent fb5bdf7 commit 67418ab

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 0d3cec71a3282a090903a919d418c638a3b1ebe6
2+
refs/heads/master: 7505c1fa2319adbd928847ca27f75f5a95eb7c3d

trunk/src/Makefile

-1
Original file line numberDiff line numberDiff line change
@@ -513,7 +513,6 @@ TEST_XFAILS_RUSTC := $(addprefix test/run-pass/, \
513513
vec-alloc-append.rs \
514514
vec-append.rs \
515515
vec-slice.rs \
516-
while-prelude-drop.rs \
517516
while-with-break.rs \
518517
yield.rs \
519518
yield2.rs \

trunk/src/comp/middle/trans.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -3005,9 +3005,9 @@ fn trans_while(@block_ctxt cx, @ast.expr cond,
30053005
auto cond_res = trans_expr(cond_cx, cond);
30063006

30073007
body_res.bcx.build.Br(cond_cx.llbb);
3008-
cond_res.bcx.build.CondBr(cond_res.val,
3009-
body_cx.llbb,
3010-
next_cx.llbb);
3008+
3009+
auto cond_bcx = trans_block_cleanups(cond_res.bcx, cond_cx);
3010+
cond_bcx.build.CondBr(cond_res.val, body_cx.llbb, next_cx.llbb);
30113011

30123012
cx.build.Br(cond_cx.llbb);
30133013
ret res(next_cx, C_nil());

0 commit comments

Comments
 (0)