rust/tests/mir-opt/casts.roundtrip.PreCodegen.after.mir
2023-06-15 15:19:11 -04:00

16 lines
344 B
Rust

// 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 (Pointer(MutToConstPointer));
StorageDead(_2);
return;
}
}