fix sparc64 ABI for aggregates with floating point members

This commit is contained in:
Petr Sumbera 2021-12-01 10:03:45 +01:00
parent a912fedd0f
commit dcd48250d7

View File

@ -48,8 +48,8 @@ fn gcc_type<'gcc>(&self, cx: &CodegenCx<'gcc, '_>) -> Type<'gcc> {
let mut args: Vec<_> = self let mut args: Vec<_> = self
.prefix .prefix
.iter() .iter()
.flat_map(|option_kind| { .flat_map(|option_reg| {
option_kind.map(|kind| Reg { kind, size: self.prefix_chunk_size }.gcc_type(cx)) option_reg.map(|reg| reg.gcc_type(cx))
}) })
.chain((0..rest_count).map(|_| rest_gcc_unit)) .chain((0..rest_count).map(|_| rest_gcc_unit))
.collect(); .collect();