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.
27 lines
501 B
Rust
27 lines
501 B
Rust
// MIR for `main` after PreCodegen
|
|
|
|
fn main() -> () {
|
|
let mut _0: ();
|
|
let _1: *mut u8;
|
|
let _2: &u8;
|
|
let mut _3: *mut u8;
|
|
scope 1 {
|
|
debug a => _2;
|
|
}
|
|
|
|
bb0: {
|
|
StorageLive(_2);
|
|
StorageLive(_1);
|
|
_1 = &/*tls*/ mut FOO;
|
|
_2 = &(*_1);
|
|
StorageLive(_3);
|
|
_3 = &/*tls*/ mut FOO;
|
|
(*_3) = const 42_u8;
|
|
StorageDead(_3);
|
|
_0 = const ();
|
|
StorageDead(_1);
|
|
StorageDead(_2);
|
|
return;
|
|
}
|
|
}
|