mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 18:32:15 +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,
|
ptr: PointerValue,
|
||||||
) {
|
) {
|
||||||
let align = match memarg.flags & 3 {
|
let align = match memarg.flags & 3 {
|
||||||
0 => 1,
|
0 => {
|
||||||
|
return; /* No alignment to check. */
|
||||||
|
}
|
||||||
1 => 2,
|
1 => 2,
|
||||||
2 => 4,
|
2 => 4,
|
||||||
3 => 8,
|
3 => 8,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user