]> git.lizzy.rs Git - rust.git/blob - src/test/mir-opt/tls_access.main.SimplifyCfg-final.after.mir
Rollup merge of #96603 - Alexendoo:const-generics-tests, r=Mark-Simulacrum
[rust.git] / src / test / mir-opt / tls_access.main.SimplifyCfg-final.after.mir
1 // MIR for `main` after SimplifyCfg-final
2
3 fn main() -> () {
4     let mut _0: ();                      // return place in scope 0 at $DIR/tls-access.rs:6:11: 6:11
5     let _2: *mut u8;                     // in scope 0 at $DIR/tls-access.rs:8:18: 8:21
6     let mut _3: *mut u8;                 // in scope 0 at $DIR/tls-access.rs:9:9: 9:12
7     scope 1 {
8         let _1: &u8;                     // in scope 1 at $DIR/tls-access.rs:8:13: 8:14
9         scope 2 {
10             debug a => _1;               // in scope 2 at $DIR/tls-access.rs:8:13: 8:14
11         }
12     }
13
14     bb0: {
15         StorageLive(_1);                 // scope 1 at $DIR/tls-access.rs:8:13: 8:14
16         StorageLive(_2);                 // scope 1 at $DIR/tls-access.rs:8:18: 8:21
17         _2 = &/*tls*/ mut FOO;           // scope 1 at $DIR/tls-access.rs:8:18: 8:21
18         _1 = &(*_2);                     // scope 1 at $DIR/tls-access.rs:8:17: 8:21
19         StorageLive(_3);                 // scope 2 at $DIR/tls-access.rs:9:9: 9:12
20         _3 = &/*tls*/ mut FOO;           // scope 2 at $DIR/tls-access.rs:9:9: 9:12
21         (*_3) = const 42_u8;             // scope 2 at $DIR/tls-access.rs:9:9: 9:17
22         StorageDead(_3);                 // scope 2 at $DIR/tls-access.rs:9:17: 9:18
23         StorageDead(_2);                 // scope 1 at $DIR/tls-access.rs:10:5: 10:6
24         StorageDead(_1);                 // scope 1 at $DIR/tls-access.rs:10:5: 10:6
25         return;                          // scope 0 at $DIR/tls-access.rs:11:2: 11:2
26     }
27 }