Skip to content

Commit

Permalink
Reintroduce alignment check
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Aug 3, 2018
1 parent 21debc6 commit 4819094
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/librustc_mir/interpret/memory.rs
Expand Up @@ -799,6 +799,7 @@ impl<'a, 'mir, 'tcx, M: Machine<'mir, 'tcx>> Memory<'a, 'mir, 'tcx, M> {
signed: bool,
) -> EvalResult<'tcx> {
let endianness = self.endianness();
self.check_align(ptr, ptr_align)?;

let val = match val {
ScalarMaybeUndef::Scalar(scalar) => scalar,
Expand Down

0 comments on commit 4819094

Please sign in to comment.