From 0bb84a1f65298b26eac110f8ed028fa3d0a7e0bf Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 27 Jul 2014 19:29:52 -0400 Subject: [PATCH] Core: Use the enum constant for an invalid reg in JitRegCache --- Source/Core/Core/PowerPC/Jit64/JitRegCache.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/PowerPC/Jit64/JitRegCache.h b/Source/Core/Core/PowerPC/Jit64/JitRegCache.h index 563302cae9..5aa9c0c33e 100644 --- a/Source/Core/Core/PowerPC/Jit64/JitRegCache.h +++ b/Source/Core/Core/PowerPC/Jit64/JitRegCache.h @@ -86,8 +86,9 @@ public: { if (IsBound(preg)) return regs[preg].location.GetSimpleReg(); + PanicAlert("Not so simple - %i", preg); - return (X64Reg)-1; + return INVALID_REG; } virtual OpArg GetDefaultLocation(size_t reg) const = 0;