Skip to content

Commit

Permalink
add cast kind of from_exposed_addr (int-to-ptr casts)
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Jun 2, 2022
1 parent 722c724 commit ede985e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,9 @@ fn codegen_stmt<'tcx>(
lval.write_cvalue(fx, operand.cast_pointer_to(to_layout));
}
Rvalue::Cast(
CastKind::Misc | CastKind::PointerExposeAddress,
CastKind::Misc
| CastKind::PointerExposeAddress
| CastKind::PointerFromExposedAddress,
ref operand,
to_ty,
) => {
Expand Down

0 comments on commit ede985e

Please sign in to comment.