mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-27 09:14:20 +00:00
20 lines
455 B
Diff
20 lines
455 B
Diff
- // MIR for `indirect_static` before GVN
|
|
+ // MIR for `indirect_static` after GVN
|
|
|
|
fn indirect_static() -> () {
|
|
let mut _0: ();
|
|
let mut _1: &std::option::Option<u8>;
|
|
let mut _2: u8;
|
|
|
|
bb0: {
|
|
_1 = const {ALLOC0: &Option<u8>};
|
|
_2 = (((*_1) as variant#1).0: u8);
|
|
return;
|
|
}
|
|
}
|
|
|
|
ALLOC0 (static: A, size: 2, align: 1) {
|
|
00 __ │ .░
|
|
}
|
|
|