2023-02-24 15:32:10 -06:00
|
|
|
- // MIR for `assert_nonzero_nonmax` before SimplifyCfg-after-uninhabited-enum-branching
|
|
|
|
+ // MIR for `assert_nonzero_nonmax` after SimplifyCfg-after-uninhabited-enum-branching
|
|
|
|
|
|
|
|
fn assert_nonzero_nonmax(_1: u8) -> u8 {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: u8;
|
2023-02-24 15:32:10 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
- switchInt(_1) -> [0: bb1, 255: bb2, otherwise: bb3];
|
|
|
|
+ switchInt(_1) -> [0: bb1, 255: bb1, otherwise: bb2];
|
2023-02-24 15:32:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
unreachable;
|
2023-02-24 15:32:10 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
- unreachable;
|
2023-02-24 15:32:10 -06:00
|
|
|
- }
|
|
|
|
-
|
|
|
|
- bb3: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = _1;
|
|
|
|
return;
|
2023-02-24 15:32:10 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|