From 76a1d66e77abe7ce7e32796fcf4283dab0c5c763 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Sat, 24 Jun 2017 11:05:53 -0700 Subject: [PATCH] fix build after rebase --- src/eval_context.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/eval_context.rs b/src/eval_context.rs index 7f30b8b9953..2c27dea2843 100644 --- a/src/eval_context.rs +++ b/src/eval_context.rs @@ -678,9 +678,7 @@ pub(super) fn eval_rvalue_into_lvalue( let (_, align) = self.size_and_align_of_dst(ty, val)?; match ptr { PrimVal::Ptr(ptr) => { - if !ptr.points_to_zst() { // assume ZST pointer to be always fully alignd (and anyway ZST pointers are going to disappear soon) - self.memory.check_align(ptr, align, 0)?; - } + self.memory.check_align(ptr, align, 0)?; } PrimVal::Bytes(bytes) => { let v = ((bytes as u128) % (1 << self.memory.pointer_size())) as u64;