about summary refs log tree commit diff
path: root/tests/mir-opt/pre-codegen/mem_replace.mem_replace.PreCodegen.after.panic-unwind.mir
blob: 958a06bcd34f8a158e31f5bfe8c5c6863f733a62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// MIR for `mem_replace` after PreCodegen

fn mem_replace(_1: &mut u32, _2: u32) -> u32 {
    debug r => _1;
    debug v => _2;
    let mut _0: u32;
    scope 1 (inlined std::mem::replace::<u32>) {
        scope 2 {
        }
    }

    bb0: {
        _0 = copy (*_1);
        (*_1) = copy _2;
        return;
    }
}