rust/tests/mir-opt/const_prop/transmute.invalid_bool.GVN.32bit.diff
Matthew Jasper a277c901d9 Remove MIR unsafe check
This also remove safety information from MIR.
2024-04-03 08:50:12 +00:00

14 lines
277 B
Diff

- // MIR for `invalid_bool` before GVN
+ // MIR for `invalid_bool` after GVN
fn invalid_bool() -> bool {
let mut _0: bool;
bb0: {
- _0 = const -1_i8 as bool (Transmute);
+ _0 = const {transmute(0xff): bool};
return;
}
}