mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-25 01:39:26 +00:00
Add a trap code for misaligned atomic accesses. Called "unaligned" because that's what the thread proposal spectest uses. Use it in LLVM.
This commit is contained in:
@ -1379,7 +1379,7 @@ fn trap_if_misaligned<'ctx>(
|
||||
builder.position_at_end(not_aligned_block);
|
||||
builder.build_call(
|
||||
intrinsics.throw_trap,
|
||||
&[intrinsics.trap_misaligned_atomic],
|
||||
&[intrinsics.trap_unaligned_atomic],
|
||||
"throw",
|
||||
);
|
||||
builder.build_unreachable();
|
||||
|
Reference in New Issue
Block a user