summaryrefslogtreecommitdiff
path: root/tests/mir-opt/pre-codegen/mem_replace.manual_replace.PreCodegen.after.mir
blob: 1d23871029d9619ce5dbb1ceeff52478249f0ef6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// MIR for `manual_replace` after PreCodegen

fn manual_replace(_1: &mut u32, _2: u32) -> u32 {
    debug r => _1;                       // in scope 0 at $DIR/mem_replace.rs:+0:23: +0:24
    debug v => _2;                       // in scope 0 at $DIR/mem_replace.rs:+0:36: +0:37
    let mut _0: u32;                     // return place in scope 0 at $DIR/mem_replace.rs:+0:47: +0:50
    scope 1 {
        debug temp => _0;                // in scope 1 at $DIR/mem_replace.rs:+1:9: +1:13
    }

    bb0: {
        _0 = (*_1);                      // scope 0 at $DIR/mem_replace.rs:+1:16: +1:18
        (*_1) = _2;                      // scope 1 at $DIR/mem_replace.rs:+2:5: +2:11
        return;                          // scope 0 at $DIR/mem_replace.rs:+4:2: +4:2
    }
}