mirror of
https://github.com/rust-lang/rust.git
synced 2025-01-22 04:34:51 +00:00
rename PointerAddress → PointerExposeAddress
This commit is contained in:
parent
e60087505e
commit
722c724a95
@ -607,7 +607,11 @@ fn codegen_stmt<'tcx>(
|
|||||||
let operand = codegen_operand(fx, operand);
|
let operand = codegen_operand(fx, operand);
|
||||||
lval.write_cvalue(fx, operand.cast_pointer_to(to_layout));
|
lval.write_cvalue(fx, operand.cast_pointer_to(to_layout));
|
||||||
}
|
}
|
||||||
Rvalue::Cast(CastKind::Misc | CastKind::PointerAddress, ref operand, to_ty) => {
|
Rvalue::Cast(
|
||||||
|
CastKind::Misc | CastKind::PointerExposeAddress,
|
||||||
|
ref operand,
|
||||||
|
to_ty,
|
||||||
|
) => {
|
||||||
let operand = codegen_operand(fx, operand);
|
let operand = codegen_operand(fx, operand);
|
||||||
let from_ty = operand.layout().ty;
|
let from_ty = operand.layout().ty;
|
||||||
let to_ty = fx.monomorphize(to_ty);
|
let to_ty = fx.monomorphize(to_ty);
|
||||||
|
Loading…
Reference in New Issue
Block a user