diff --git a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp index a497cf311f..3078e36714 100644 --- a/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp +++ b/Source/Core/Core/DSP/Jit/x64/DSPJitRegCache.cpp @@ -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()) {