Return the result of the discriminant from trans_alt, rather than nil, in the _|_ case. This was breaking the enclosed test case (alt-bot-2) when optimization was disabled. Closes #769
4 lines
122 B
Rust
4 lines
122 B
Rust
// n.b. This was only ever failing with optimization disabled.
|
|
fn a() -> int { alt ret 1 { 2 { 3 } } }
|
|
fn main() { a(); }
|