]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_codegen_gcc/src/abi.rs
Rollup merge of #92418 - dtolnay:emptystructpat, r=michaelwoerister
[rust.git] / compiler / rustc_codegen_gcc / src / abi.rs
index 2bbb199c8998285a06d689753102c0be6a0bb4e6..a8b1e70e2bb801e432b5940d126bd4cad33eca63 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();