Skip to content

Commit

Permalink
Auto merge of rust-lang#91003 - psumbera:sparc64-abi, r=nagisa
Browse files Browse the repository at this point in the history
fix sparc64 ABI for aggregates with floating point members

Fixes rust-lang#86163
  • Loading branch information
bors committed Dec 2, 2021
2 parents 0d61135 + dcd4825 commit 48fc7d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 48fc7d9

Please sign in to comment.