diff --git a/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.h b/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.h index 2200b6cecc..d7ef0bf3e1 100644 --- a/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.h +++ b/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.h @@ -110,7 +110,9 @@ public: void Lock() { m_locked = true; } void Unlock() { m_locked = false; } Arm64Gen::ARM64Reg GetReg() const { return m_reg; } - bool operator==(const Arm64Gen::ARM64Reg& reg) { return reg == m_reg; } + + bool operator==(Arm64Gen::ARM64Reg reg) const { return reg == m_reg; } + bool operator!=(Arm64Gen::ARM64Reg reg) const { return !operator==(reg); } private: Arm64Gen::ARM64Reg m_reg = Arm64Gen::INVALID_REG;