fix build after rebase
This commit is contained in:
parent
4e90e3bcf6
commit
76a1d66e77
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user