rust/tests/mir-opt/casts.roundtrip.PreCodegen.after.mir

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

16 lines
344 B
Rust
Raw Normal View History

2023-02-19 14:50:00 -06:00
// MIR for `roundtrip` after PreCodegen
fn roundtrip(_1: *const u8) -> *const u8 {
2023-06-06 08:47:00 -05:00
debug x => _1;
let mut _0: *const u8;
let mut _2: *mut u8;
2023-02-19 14:50:00 -06:00
bb0: {
2023-06-06 08:47:00 -05:00
StorageLive(_2);
_2 = _1 as *mut u8 (PtrToPtr);
_0 = move _2 as *const u8 (Pointer(MutToConstPointer));
StorageDead(_2);
return;
2023-02-19 14:50:00 -06:00
}
}