Skip to content

Commit 63a1376

Browse files
WaffleLapkinbjorn3
andcommitted
use shorter ptr_mask impl in cg cranelift
Co-authored-by: bjorn3 <[email protected]>
1 parent 5b32aa0 commit 63a1376

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Diff for: src/intrinsics/mod.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -542,9 +542,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
542542

543543
sym::ptr_mask => {
544544
intrinsic_args!(fx, args => (ptr, mask); intrinsic);
545-
let ptr_val = ptr.load_scalar(fx);
546-
547-
fx.bcx.ins().band(ptr_val, mask);
545+
fx.bcx.ins().band(ptr, mask);
548546
}
549547

550548
sym::transmute => {

0 commit comments

Comments
 (0)