about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2021-12-02 02:59:44 +0000
committerbors <bors@rust-lang.org>2021-12-02 02:59:44 +0000
commita2b7b7891e4623e716185f3ab62bd206fb4c5182 (patch)
treef5abec8580771c6295795930c978be34b9bbbf69 /compiler/rustc_codegen_gcc
parent76938d64a42304e4413842656c044e9b40a6041b (diff)
parent128ceec92d04a9b4feaf55804f5e7d1f3f1dbfd2 (diff)
downloadrust-a2b7b7891e4623e716185f3ab62bd206fb4c5182.tar.gz
rust-a2b7b7891e4623e716185f3ab62bd206fb4c5182.zip
Auto merge of #91003 - psumbera:sparc64-abi, r=nagisa
fix sparc64 ABI for aggregates with floating point members

Fixes #86163
Diffstat (limited to 'compiler/rustc_codegen_gcc')
-rw-r--r--compiler/rustc_codegen_gcc/src/abi.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/src/abi.rs b/compiler/rustc_codegen_gcc/src/abi.rs
index 2bbb199c899..a8b1e70e2bb 100644
--- a/compiler/rustc_codegen_gcc/src/abi.rs
+++ b/compiler/rustc_codegen_gcc/src/abi.rs
@@ -48,8 +48,8 @@ impl GccType for CastTarget {
         let mut args: Vec<_> = self
             .prefix
             .iter()
-            .flat_map(|option_kind| {
-                option_kind.map(|kind| Reg { kind, size: self.prefix_chunk_size }.gcc_type(cx))
+            .flat_map(|option_reg| {
+                option_reg.map(|reg| reg.gcc_type(cx))
             })
             .chain((0..rest_count).map(|_| rest_gcc_unit))
             .collect();