summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/pre-codegen/spans.outer.PreCodegen.after.panic-unwind.mir
blob: 485dc9179cef07914b24663320e8e4c3857c5385 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// MIR for `outer` after PreCodegen

fn outer(_1: u8) -> u8 {
    debug v => _1;                       // in scope 0 at $DIR/spans.rs:10:14: 10:15
    let mut _0: u8;                      // return place in scope 0 at $DIR/spans.rs:10:24: 10:26
    let mut _2: &u8;                     // in scope 0 at $DIR/spans.rs:11:11: 11:13
    scope 1 (inlined inner) {            // at $DIR/spans.rs:11:5: 11:14
        debug x => _2;                   // in scope 1 at $DIR/spans.rs:14:14: 14:15
    }

    bb0: {
        StorageLive(_2);                 // scope 0 at $DIR/spans.rs:11:11: 11:13
        _2 = &_1;                        // scope 0 at $DIR/spans.rs:11:11: 11:13
        _0 = _1;                         // scope 1 at $DIR/spans.rs:15:5: 15:7
        StorageDead(_2);                 // scope 0 at $DIR/spans.rs:11:13: 11:14
        return;                          // scope 0 at $DIR/spans.rs:12:2: 12:2
    }
}