mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Modernize std::none_of
with ranges and projections
This commit is contained in:
parent
3536e287e0
commit
940009a645
@ -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…
x
Reference in New Issue
Block a user