Modernize `std::none_of` with ranges and projections
This commit is contained in:
parent
00e147c722
commit
9f972db4b8
|
@ -521,10 +521,9 @@ void RegCache::BindToRegister(preg_t i, bool doLoad, bool makeDirty)
|
||||||
}
|
}
|
||||||
|
|
||||||
ASSERT_MSG(DYNA_REC,
|
ASSERT_MSG(DYNA_REC,
|
||||||
std::none_of(m_regs.begin(), m_regs.end(),
|
std::ranges::none_of(
|
||||||
[xr](const auto& r) {
|
m_regs, [xr](const auto& l) { return l.has_value() && l->IsSimpleReg(xr); },
|
||||||
return r.Location().has_value() && r.Location()->IsSimpleReg(xr);
|
&PPCCachedReg::Location),
|
||||||
}),
|
|
||||||
"Xreg {} already bound", Common::ToUnderlying(xr));
|
"Xreg {} already bound", Common::ToUnderlying(xr));
|
||||||
|
|
||||||
m_regs[i].SetBoundTo(xr);
|
m_regs[i].SetBoundTo(xr);
|
||||||
|
|
Loading…
Reference in New Issue