Merge pull request #12600 from lioncash/dspreg

DSPJitRegCache: Take DynamicReg instances by reference in FlushRegs()
This commit is contained in:
Admiral H. Curtiss 2024-03-12 04:02:09 +01:00 committed by GitHub
commit 6ccf35ad4d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -258,8 +258,8 @@ void DSPJitRegCache::FlushRegs(DSPJitRegCache& cache, bool emit)
// free all host regs that are not used for the same guest reg
for (size_t i = 0; i < m_regs.size(); i++)
{
const auto reg = m_regs[i];
const auto cached_reg = cache.m_regs[i];
const auto& reg = m_regs[i];
const auto& cached_reg = cache.m_regs[i];
if (cached_reg.loc.GetSimpleReg() != reg.loc.GetSimpleReg() && reg.loc.IsSimpleReg())
{