2023-02-24 20:32:52 -06:00
|
|
|
- // MIR for `invalid_bool` before ConstProp
|
|
|
|
+ // MIR for `invalid_bool` after ConstProp
|
|
|
|
|
|
|
|
fn invalid_bool() -> bool {
|
2023-06-06 08:47:00 -05:00
|
|
|
let mut _0: bool;
|
2023-02-24 20:32:52 -06:00
|
|
|
scope 1 {
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-06-06 08:47:00 -05:00
|
|
|
- _0 = const -1_i8 as bool (Transmute);
|
|
|
|
+ _0 = const {transmute(0xff): bool};
|
|
|
|
return;
|
2023-02-24 20:32:52 -06:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|