summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/tls_access.main.PreCodegen.after.mir
blob: 43c7051f0273a7ed0b92b2510ae0576ef9469ad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
// MIR for `main` after PreCodegen

fn main() -> () {
    let mut _0: ();
    let _1: *mut u8;
    let mut _3: *mut u8;
    scope 1 {
        let _2: &u8;
        scope 2 {
            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;
    }
}