We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
ptr_mask
1 parent 753271c commit f5686e3Copy full SHA for f5686e3
src/intrinsics/mod.rs
@@ -600,9 +600,11 @@ fn codegen_regular_intrinsic_call<'tcx>(
600
601
sym::ptr_mask => {
602
intrinsic_args!(fx, args => (ptr, mask); intrinsic);
603
+ let ptr_layout = ptr.layout();
604
let ptr = ptr.load_scalar(fx);
605
let mask = mask.load_scalar(fx);
- fx.bcx.ins().band(ptr, mask);
606
+ let res = fx.bcx.ins().band(ptr, mask);
607
+ ret.write_cvalue(fx, CValue::by_val(res, ptr_layout));
608
}
609
610
sym::write_bytes | sym::volatile_set_memory => {
0 commit comments