use shorter ptr_mask impl in cg cranelift

Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
Waffle Maybe 2022-05-11 21:43:13 +04:00 committed by Maybe Waffle
parent 10270f4b44
commit 9af24df67a

View File

@ -542,9 +542,7 @@ fn codegen_regular_intrinsic_call<'tcx>(
sym::ptr_mask => {
intrinsic_args!(fx, args => (ptr, mask); intrinsic);
let ptr_val = ptr.load_scalar(fx);
fx.bcx.ins().band(ptr_val, mask);
fx.bcx.ins().band(ptr, mask);
}
sym::transmute => {