Write return value for ptr_mask
intrinsic (#1536)
This was forgotten. Without it, ptr_mask just always returns null.
This commit is contained in:
parent
753271ce7e
commit
f5686e3cc9
@ -600,9 +600,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
|
||||
|
||||
sym::ptr_mask => {
|
||||
intrinsic_args!(fx, args => (ptr, mask); intrinsic);
|
||||
let ptr_layout = ptr.layout();
|
||||
let ptr = ptr.load_scalar(fx);
|
||||
let mask = mask.load_scalar(fx);
|
||||
fx.bcx.ins().band(ptr, mask);
|
||||
let res = fx.bcx.ins().band(ptr, mask);
|
||||
ret.write_cvalue(fx, CValue::by_val(res, ptr_layout));
|
||||
}
|
||||
|
||||
sym::write_bytes | sym::volatile_set_memory => {
|
||||
|
Loading…
Reference in New Issue
Block a user