Fix RISC-V C function ABI when passing/returning structs containing floats
This commit is contained in:
parent
8f47346726
commit
308ca33774
1 changed files with 1 additions and 1 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue