Skip to content

Commit

Permalink
interpret: make read-pointer-as-bytes *always* work in Miri
Browse files Browse the repository at this point in the history
and show some extra information when it happens in CTFE
  • Loading branch information
RalfJung committed Aug 27, 2022
1 parent 0644a8c commit 94f2fef
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/intrinsics/simd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,10 @@ pub(super) fn codegen_simd_intrinsic_call<'tcx>(
let size = Size::from_bytes(
4 * ret_lane_count, /* size_of([u32; ret_lane_count]) */
);
alloc.inner().get_bytes(fx, alloc_range(offset, size)).unwrap()
alloc
.inner()
.get_bytes_strip_provenance(fx, alloc_range(offset, size))
.unwrap()
}
_ => unreachable!("{:?}", idx_const),
};
Expand Down

0 comments on commit 94f2fef

Please sign in to comment.