Skip to content

Commit ae48874

Browse files
committed
---
yaml --- r: 4411 b: refs/heads/master c: e0985c1 h: refs/heads/master i: 4409: cc8b84b 4407: 149e77b v: v3
1 parent 1291c09 commit ae48874

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
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: 5f03ca48d8348197b52697f54a34e471b0edd79f
2+
refs/heads/master: e0985c10606d0b38be66734bf1a34bad70eec064

trunk/src/comp/middle/trans_alt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ fn trans_alt(cx: &@block_ctxt, expr: &@ast::expr, arms: &ast::arm[],
433433
ret rslt(cx, cx.build.Unreachable());
434434
}
435435
else {
436-
ret rslt(cx, C_nil());
436+
ret er;
437437
}
438438
}
439439

trunk/src/test/run-pass/alt-bot-2.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// n.b. This was only ever failing with optimization disabled.
2+
fn a() -> int { alt ret 1 { 2 { 3 } } }
3+
fn main() { a(); }

0 commit comments

Comments
 (0)