about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWaffle Maybe <waffle.lapkin@gmail.com>2022-08-07 22:32:26 +0400
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-08-21 05:27:14 +0400
commit9c191203a9c38df4092caed1925fdab02deb8323 (patch)
tree96ef904484fa2ab9d447e15728912ff070a6a62a
parent168a83797566cffeb6e0ba6f4eb6724d06b6436c (diff)
downloadrust-9c191203a9c38df4092caed1925fdab02deb8323.tar.gz
rust-9c191203a9c38df4092caed1925fdab02deb8323.zip
fix cg cranelift
Co-authored-by: bjorn3 <17426603+bjorn3@users.noreply.github.com>
-rw-r--r--compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
index 35880bb3e22..9fe43157d50 100644
--- a/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
+++ b/compiler/rustc_codegen_cranelift/src/intrinsics/mod.rs
@@ -542,6 +542,8 @@ fn codegen_regular_intrinsic_call<'tcx>(
 
         sym::ptr_mask => {
             intrinsic_args!(fx, args => (ptr, mask); intrinsic);
+            let ptr = ptr.load_scalar(fx);
+            let mask = mask.load_scalar(fx);
             fx.bcx.ins().band(ptr, mask);
         }