From 0cf89b53369068117ab64c6ec57719ed28fb3fa7 Mon Sep 17 00:00:00 2001 From: Jubilee Young Date: Mon, 16 Sep 2024 13:01:29 -0700 Subject: [PATCH] compiler: Use make_indirect for the wasm ABI This is ignored by LLVM, but is still incorrect. --- compiler/rustc_target/src/abi/call/wasm.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/abi/call/wasm.rs b/compiler/rustc_target/src/abi/call/wasm.rs index 4ae8b9490dda..3c4cd76a7546 100644 --- a/compiler/rustc_target/src/abi/call/wasm.rs +++ b/compiler/rustc_target/src/abi/call/wasm.rs @@ -40,7 +40,7 @@ where } arg.extend_integer_width_to(32); if arg.layout.is_aggregate() && !unwrap_trivial_aggregate(cx, arg) { - arg.make_indirect_byval(None); + arg.make_indirect(); } }