Skip to content

Commit c5154ba

Browse files
RalfJungAmanieu
authored andcommitted
use 'unadjusted' ABI for wasm LLVM intrinsics
1 parent 3963579 commit c5154ba

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

crates/core_arch/src/wasm32/atomic.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(test)]
22
use stdarch_test::assert_instr;
33

4-
unsafe extern "C" {
4+
unsafe extern "unadjusted" {
55
#[link_name = "llvm.wasm.memory.atomic.wait32"]
66
fn llvm_atomic_wait_i32(ptr: *mut i32, exp: i32, timeout: i64) -> i32;
77
#[link_name = "llvm.wasm.memory.atomic.wait64"]

crates/core_arch/src/wasm32/memory.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#[cfg(test)]
22
use stdarch_test::assert_instr;
33

4-
unsafe extern "C" {
4+
unsafe extern "unadjusted" {
55
#[link_name = "llvm.wasm.memory.grow"]
66
fn llvm_memory_grow(mem: u32, pages: usize) -> usize;
77
#[link_name = "llvm.wasm.memory.size"]

crates/core_arch/src/wasm32/relaxed_simd.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use crate::core_arch::simd;
55
use stdarch_test::assert_instr;
66

77
#[allow(improper_ctypes)]
8-
unsafe extern "C" {
8+
unsafe extern "unadjusted" {
99
#[link_name = "llvm.wasm.relaxed.swizzle"]
1010
fn llvm_relaxed_swizzle(a: simd::i8x16, b: simd::i8x16) -> simd::i8x16;
1111
#[link_name = "llvm.wasm.relaxed.trunc.signed"]

crates/core_arch/src/wasm32/simd128.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ conversions! {
7373
}
7474

7575
#[allow(improper_ctypes)]
76-
unsafe extern "C" {
76+
unsafe extern "unadjusted" {
7777
#[link_name = "llvm.wasm.swizzle"]
7878
fn llvm_swizzle(a: simd::i8x16, b: simd::i8x16) -> simd::i8x16;
7979

0 commit comments

Comments
 (0)