about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbeetrees <b@beetr.ee>2025-04-03 23:53:06 +0100
committerbeetrees <b@beetr.ee>2025-06-16 10:14:07 +0100
commit308ca3377430d07300cfffbcc7f22a8e2b984b10 (patch)
tree7b4778af3acf1d5b8f1f3f59d17107601ba02525
parent8f473467262c7eee210feee9ed7363abd9a1c8d0 (diff)
Fix RISC-V C function ABI when passing/returning structs containing floats
-rw-r--r--src/intrinsic/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/intrinsic/mod.rs b/src/intrinsic/mod.rs
index 9e05b8f23aa..c921851b42b 100644
--- a/src/intrinsic/mod.rs
+++ b/src/intrinsic/mod.rs
@@ -626,7 +626,7 @@ impl<'gcc, 'tcx> ArgAbiExt<'gcc, 'tcx> for ArgAbi<'tcx, Ty<'tcx>> {
                 bx.lifetime_start(llscratch, scratch_size);
 
                 // ... where we first store the value...
-                bx.store(val, llscratch, scratch_align);
+                rustc_codegen_ssa::mir::store_cast(bx, cast, val, llscratch, scratch_align);
 
                 // ... and then memcpy it to the intended destination.
                 bx.memcpy(