Skip to content

Commit 4819094

Browse files
committed
Reintroduce alignment check
1 parent 21debc6 commit 4819094

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/librustc_mir/interpret/memory.rs

+1
Original file line numberDiff line numberDiff line change
@@ -799,6 +799,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
799799
signed: bool,
800800
) -> EvalResult<'tcx> {
801801
let endianness = self.endianness();
802+
self.check_align(ptr, ptr_align)?;
802803

803804
let val = match val {
804805
ScalarMaybeUndef::Scalar(scalar) => scalar,

0 commit comments

Comments
 (0)