mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
16 lines
313 B
Diff
16 lines
313 B
Diff
- // MIR for `invalid_bool` before ConstProp
|
|
+ // MIR for `invalid_bool` after ConstProp
|
|
|
|
fn invalid_bool() -> bool {
|
|
let mut _0: bool;
|
|
scope 1 {
|
|
}
|
|
|
|
bb0: {
|
|
- _0 = const -1_i8 as bool (Transmute);
|
|
+ _0 = const {transmute(0xff): bool};
|
|
return;
|
|
}
|
|
}
|
|
|