mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 10:22:19 +00:00
No need to emit any alignment check for byte-aligned accesses.
This commit is contained in:
parent
70d561a1dd
commit
2882c75957
@ -500,7 +500,9 @@ fn trap_if_misaligned(
|
||||
ptr: PointerValue,
|
||||
) {
|
||||
let align = match memarg.flags & 3 {
|
||||
0 => 1,
|
||||
0 => {
|
||||
return; /* No alignment to check. */
|
||||
}
|
||||
1 => 2,
|
||||
2 => 4,
|
||||
3 => 8,
|
||||
|
Loading…
x
Reference in New Issue
Block a user