about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJubilee Young <workingjubilee@gmail.com>2024-09-16 13:01:29 -0700
committerJubilee Young <workingjubilee@gmail.com>2024-09-18 12:28:55 -0700
commit0cf89b53369068117ab64c6ec57719ed28fb3fa7 (patch)
tree2f7b9fcd8f91789fc170da4ca5ab6e9ddc98cc00
parent7fc70f870a1d11c3b104274d3a18112996cdec9a (diff)
downloadrust-0cf89b53369068117ab64c6ec57719ed28fb3fa7.tar.gz
rust-0cf89b53369068117ab64c6ec57719ed28fb3fa7.zip
compiler: Use make_indirect for the wasm ABI
This is ignored by LLVM, but is still incorrect.
-rw-r--r--compiler/rustc_target/src/abi/call/wasm.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_target/src/abi/call/wasm.rs b/compiler/rustc_target/src/abi/call/wasm.rs
index 4ae8b9490dd..3c4cd76a754 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();
     }
 }