Skip to content

Commit b52abdd

Browse files
committed
---
yaml --- r: 2367 b: refs/heads/master c: 3d738e9 h: refs/heads/master i: 2365: 16fe326 2363: bda3751 2359: 333b3ff 2351: eba42fe 2335: 067fd4b 2303: bdcacc9 v: v3
1 parent 12f173f commit b52abdd

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 9432626b686782f87e54960a4c019fd7c83ad7f7
2+
refs/heads/master: 3d738e9e0634a4cd6239d1317bd7dad53be68dc8

trunk/src/comp/middle/trans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5488,7 +5488,7 @@ fn trans_break_cont(@block_ctxt cx, bool to_end) -> result {
54885488
}
54895489
}
54905490
}
5491-
ret res(bcx, C_nil());
5491+
ret res(new_sub_block_ctxt(bcx, "unreachable"), C_nil());
54925492
}
54935493
case (_) {
54945494
alt (cleanup_cx.parent) {
@@ -5544,7 +5544,7 @@ fn trans_ret(@block_ctxt cx, &option.t[@ast.expr] e) -> result {
55445544
}
55455545

55465546
bcx.build.RetVoid();
5547-
ret res(bcx, C_nil());
5547+
ret res(new_sub_block_ctxt(bcx, "unreachable"), C_nil());
55485548
}
55495549

55505550
fn trans_be(@block_ctxt cx, @ast.expr e) -> result {

trunk/src/test/run-pass/artificial-block.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
// xfail-stage0
2-
// xfail-stage1
3-
// xfail-stage2
4-
// xfail-stage1
5-
// xfail-stage2
62
fn f() -> int {
73
{ ret 3; }
84
}

0 commit comments

Comments
 (0)