summaryrefslogtreecommitdiffstats
path: root/tests/mir-opt/casts.roundtrip.PreCodegen.after.mir
blob: f0c35fe9782cb66e63b9dd9d1ff2231f69332734 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// MIR for `roundtrip` after PreCodegen

fn roundtrip(_1: *const u8) -> *const u8 {
    debug x => _1;
    let mut _0: *const u8;
    let mut _2: *mut u8;

    bb0: {
        StorageLive(_2);
        _2 = _1 as *mut u8 (PtrToPtr);
        _0 = move _2 as *const u8 (PointerCoercion(MutToConstPointer));
        StorageDead(_2);
        return;
    }
}