use shorter ptr_mask
impl in cg cranelift
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
parent
10270f4b44
commit
9af24df67a
@ -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 => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user