mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-01 06:51:58 +00:00
33 lines
613 B
Diff
33 lines
613 B
Diff
- // MIR for `exhaustive_match_i8` before MatchBranchSimplification
|
|
+ // MIR for `exhaustive_match_i8` after MatchBranchSimplification
|
|
|
|
fn exhaustive_match_i8(_1: E) -> i8 {
|
|
debug e => _1;
|
|
let mut _0: i8;
|
|
let mut _2: isize;
|
|
|
|
bb0: {
|
|
_2 = discriminant(_1);
|
|
switchInt(move _2) -> [0: bb3, 1: bb1, otherwise: bb2];
|
|
}
|
|
|
|
bb1: {
|
|
_0 = const 1_i8;
|
|
goto -> bb4;
|
|
}
|
|
|
|
bb2: {
|
|
unreachable;
|
|
}
|
|
|
|
bb3: {
|
|
_0 = const 0_i8;
|
|
goto -> bb4;
|
|
}
|
|
|
|
bb4: {
|
|
return;
|
|
}
|
|
}
|
|
|