rust/tests/mir-opt/const_prop/transmute.unreachable_mut.GVN.32bit.diff

24 lines
544 B
Diff
Raw Normal View History

2023-09-20 16:43:33 -05:00
- // MIR for `unreachable_mut` before GVN
+ // MIR for `unreachable_mut` after GVN
fn unreachable_mut() -> ! {
2023-06-06 08:47:00 -05:00
let mut _0: !;
let _1: &mut Never;
let mut _2: &mut Never;
scope 1 {
2023-06-06 08:47:00 -05:00
debug x => _1;
}
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_1);
2023-12-24 07:00:48 -06:00
StorageLive(_2);
2023-06-06 08:47:00 -05:00
- _2 = const 1_usize as &mut Never (Transmute);
2023-10-31 14:08:36 -05:00
- _1 = &mut (*_2);
2023-06-06 08:47:00 -05:00
+ _2 = const {0x1 as &mut Never};
2023-10-31 14:08:36 -05:00
+ _1 = const {0x1 as &mut Never};
2023-12-24 07:00:48 -06:00
StorageDead(_2);
2023-06-06 08:47:00 -05:00
unreachable;
}
}