about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2022-06-02 09:05:37 -0400
committerRalf Jung <post@ralfj.de>2022-06-02 10:46:13 -0400
commitfafccdced349d655db83e0ec30e91b85dcf65cf7 (patch)
treeac2824389ec482db03424576e022e3e304ef54a2 /compiler/rustc_codegen_cranelift
parent5e6bb83268518dcd74c96b5504f485b71e604e4c (diff)
downloadrust-fafccdced349d655db83e0ec30e91b85dcf65cf7.tar.gz
rust-fafccdced349d655db83e0ec30e91b85dcf65cf7.zip
add cast kind of from_exposed_addr (int-to-ptr casts)
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
-rw-r--r--compiler/rustc_codegen_cranelift/src/base.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs
index 58bec183c94..07136e1b76a 100644
--- a/compiler/rustc_codegen_cranelift/src/base.rs
+++ b/compiler/rustc_codegen_cranelift/src/base.rs
@@ -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,
                 ) => {