mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-04 19:29:07 +00:00
add cast kind of from_exposed_addr (int-to-ptr casts)
This commit is contained in:
parent
722c724a95
commit
ede985e8b8
@ -608,7 +608,9 @@ fn codegen_stmt<'tcx>(
|
|||||||
lval.write_cvalue(fx, operand.cast_pointer_to(to_layout));
|
lval.write_cvalue(fx, operand.cast_pointer_to(to_layout));
|
||||||
}
|
}
|
||||||
Rvalue::Cast(
|
Rvalue::Cast(
|
||||||
CastKind::Misc | CastKind::PointerExposeAddress,
|
CastKind::Misc
|
||||||
|
| CastKind::PointerExposeAddress
|
||||||
|
| CastKind::PointerFromExposedAddress,
|
||||||
ref operand,
|
ref operand,
|
||||||
to_ty,
|
to_ty,
|
||||||
) => {
|
) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user