mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 16:54:01 +00:00
a277c901d9
This also remove safety information from MIR.
14 lines
277 B
Diff
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;
|
|
}
|
|
}
|
|
|