]> git.lizzy.rs Git - rust.git/blobdiff - src/abi.rs
fix sparc64 ABI for aggregates with floating point members
[rust.git] / src / abi.rs
index ce428c589a478f1f6059d3a4845c21b5e407db82..f1b9c310e728a6df7def182eadaf73a01d9c5e51 100644 (file)
@@ -48,8 +48,8 @@ fn gcc_type<'gcc>(&self, cx: &CodegenCx<'gcc, '_>) -> Type<'gcc> {
         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();