Skip to content

Commit

Permalink
Revert "sparc64: fix crash in ABI code for { f64, f32 } struct"
Browse files Browse the repository at this point in the history
This reverts commit 41c6fa8.
  • Loading branch information
erikdesjardins committed Mar 17, 2024
1 parent 8d5fd94 commit 6577aef
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions compiler/rustc_target/src/abi/call/sparc64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,12 @@ where
data.last_offset = data.last_offset + Reg::i32().size;
}

if data.last_offset < offset {
for _ in 0..((offset - data.last_offset).bits() / 64)
.min((data.prefix.len() - data.prefix_index) as u64)
{
data.prefix[data.prefix_index] = Some(Reg::i64());
data.prefix_index += 1;
data.last_offset = data.last_offset + Reg::i64().size;
}
for _ in 0..((offset - data.last_offset).bits() / 64)
.min((data.prefix.len() - data.prefix_index) as u64)
{
data.prefix[data.prefix_index] = Some(Reg::i64());
data.prefix_index += 1;
data.last_offset = data.last_offset + Reg::i64().size;
}

if data.last_offset < offset {
Expand Down

0 comments on commit 6577aef

Please sign in to comment.