mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
Modernize std::none_of
with ranges and projections
This commit is contained in:
parent
00e147c722
commit
9f972db4b8
1 changed files with 3 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue