mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
Reintroduce alignment check
This commit is contained in:
@@ -799,6 +799,7 @@ pub fn write_scalar(
|
||||
signed: bool,
|
||||
) -> EvalResult<'tcx> {
|
||||
let endianness = self.endianness();
|
||||
self.check_align(ptr, ptr_align)?;
|
||||
|
||||
let val = match val {
|
||||
ScalarMaybeUndef::Scalar(scalar) => scalar,
|
||||
|
||||
Reference in New Issue
Block a user