Skip to content

Commit

Permalink
Fix MSRV
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Dec 20, 2024
1 parent 70dd41e commit dbdeba9
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions cranelift/codegen/src/isa/pulley_shared/abi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -454,11 +454,16 @@ where
// `info.dest.args` to be handled differently during register
// allocation.
let mut args = SmallVec::new();
assert!(info
.uses
.iter()
.filter_map(|arg| XReg::new(arg.preg))
.is_sorted());
if cfg!(debug_assertions) {
let xargs = info
.uses
.iter()
.filter_map(|a| XReg::new(a.preg))
.collect::<Vec<_>>();
for window in xargs.windows(2) {
assert!(window[0] < window[1]);
}
}
info.uses.retain(|arg| {
if arg.preg != x0() && arg.preg != x1() && arg.preg != x2() && arg.preg != x3()
{
Expand Down

0 comments on commit dbdeba9

Please sign in to comment.