use shorter ptr_mask impl in cg cranelift
Co-authored-by: bjorn3 <bjorn3@users.noreply.github.com>
This commit is contained in:
parent
5b32aa0747
commit
63a137605f
1 changed files with 1 additions and 3 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue