Skip to content

Commit ede985e

Browse files
committed
add cast kind of from_exposed_addr (int-to-ptr casts)
1 parent 722c724 commit ede985e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/base.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,9 @@ fn codegen_stmt<'tcx>(
608608
lval.write_cvalue(fx, operand.cast_pointer_to(to_layout));
609609
}
610610
Rvalue::Cast(
611-
CastKind::Misc | CastKind::PointerExposeAddress,
611+
CastKind::Misc
612+
| CastKind::PointerExposeAddress
613+
| CastKind::PointerFromExposedAddress,
612614
ref operand,
613615
to_ty,
614616
) => {

0 commit comments

Comments
 (0)