about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/base.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/base.rs b/src/base.rs
index 7c59ce354c0..58bec183c94 100644
--- a/src/base.rs
+++ b/src/base.rs
@@ -607,7 +607,11 @@ fn codegen_stmt<'tcx>(
                     let operand = codegen_operand(fx, operand);
                     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 from_ty = operand.layout().ty;
                     let to_ty = fx.monomorphize(to_ty);