2022-05-30 18:26:02 -05:00
|
|
|
// MIR for `main` after PreCodegen
|
2020-05-02 14:44:25 -05:00
|
|
|
|
|
|
|
fn main() -> () {
|
2022-11-02 16:54:49 -05:00
|
|
|
let mut _0: (); // return place in scope 0 at $DIR/tls_access.rs:+0:11: +0:11
|
2023-05-21 13:44:37 -05:00
|
|
|
let _1: *mut u8; // in scope 0 at $DIR/tls_access.rs:+2:18: +2:21
|
2022-11-02 16:54:49 -05:00
|
|
|
let mut _3: *mut u8; // in scope 0 at $DIR/tls_access.rs:+3:9: +3:12
|
2020-05-02 14:44:25 -05:00
|
|
|
scope 1 {
|
2023-05-21 13:44:37 -05:00
|
|
|
let _2: &u8; // in scope 1 at $DIR/tls_access.rs:+2:13: +2:14
|
2020-05-02 14:44:25 -05:00
|
|
|
scope 2 {
|
2023-05-21 13:44:37 -05:00
|
|
|
debug a => _2; // in scope 2 at $DIR/tls_access.rs:+2:13: +2:14
|
2020-05-02 14:44:25 -05:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
bb0: {
|
2023-05-21 13:44:37 -05:00
|
|
|
StorageLive(_2); // scope 1 at $DIR/tls_access.rs:+2:13: +2:14
|
|
|
|
StorageLive(_1); // scope 1 at $DIR/tls_access.rs:+2:18: +2:21
|
|
|
|
_1 = &/*tls*/ mut FOO; // scope 1 at $DIR/tls_access.rs:+2:18: +2:21
|
|
|
|
_2 = &(*_1); // scope 1 at $DIR/tls_access.rs:+2:17: +2:21
|
2022-11-02 16:54:49 -05:00
|
|
|
StorageLive(_3); // scope 2 at $DIR/tls_access.rs:+3:9: +3:12
|
|
|
|
_3 = &/*tls*/ mut FOO; // scope 2 at $DIR/tls_access.rs:+3:9: +3:12
|
|
|
|
(*_3) = const 42_u8; // scope 2 at $DIR/tls_access.rs:+3:9: +3:17
|
|
|
|
StorageDead(_3); // scope 2 at $DIR/tls_access.rs:+3:17: +3:18
|
|
|
|
_0 = const (); // scope 1 at $DIR/tls_access.rs:+1:5: +4:6
|
|
|
|
StorageDead(_1); // scope 1 at $DIR/tls_access.rs:+4:5: +4:6
|
2023-05-21 13:44:37 -05:00
|
|
|
StorageDead(_2); // scope 1 at $DIR/tls_access.rs:+4:5: +4:6
|
2022-11-02 16:54:49 -05:00
|
|
|
return; // scope 0 at $DIR/tls_access.rs:+5:2: +5:2
|
2020-05-02 14:44:25 -05:00
|
|
|
}
|
|
|
|
}
|