2023-01-21 16:28:54 -06:00
|
|
|
- // MIR for `mutate_discriminant` before DataflowConstProp
|
|
|
|
+ // MIR for `mutate_discriminant` after DataflowConstProp
|
|
|
|
|
|
|
|
fn mutate_discriminant() -> u8 {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: u8;
|
|
|
|
let mut _1: std::option::Option<NonZeroUsize>;
|
|
|
|
let mut _2: isize;
|
2023-01-21 16:28:54 -06:00
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
discriminant(_1) = 1;
|
|
|
|
(((_1 as variant#1).0: NonZeroUsize).0: usize) = const 0_usize;
|
|
|
|
_2 = discriminant(_1);
|
|
|
|
switchInt(copy _2) -> [0: bb1, otherwise: bb2];
|
2023-01-21 16:28:54 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb1: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const 1_u8;
|
|
|
|
return;
|
2023-01-21 16:28:54 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
bb2: {
|
2023-06-06 08:47:00 -05:00
|
|
|
_0 = const 2_u8;
|
|
|
|
unreachable;
|
2023-01-21 16:28:54 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|