fix build after rebase

This commit is contained in:
Ralf Jung 2017-06-24 11:05:53 -07:00
parent 4e90e3bcf6
commit 76a1d66e77

View File

@ -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;