We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d27ec6c commit e600875Copy full SHA for e600875
src/base.rs
@@ -607,7 +607,7 @@ fn codegen_stmt<'tcx>(
607
let operand = codegen_operand(fx, operand);
608
lval.write_cvalue(fx, operand.cast_pointer_to(to_layout));
609
}
610
- Rvalue::Cast(CastKind::Misc, ref operand, to_ty) => {
+ Rvalue::Cast(CastKind::Misc | CastKind::PointerAddress, ref operand, to_ty) => {
611
612
let from_ty = operand.layout().ty;
613
let to_ty = fx.monomorphize(to_ty);
0 commit comments