From e3e78128a28c867ae980b4bff957fea57c383341 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 23 Feb 2014 04:14:57 -0500 Subject: [PATCH] isSameValue in IR.cpp/.h should be returning a boolean value. --- Source/Core/Core/PowerPC/JitILCommon/IR.cpp | 2 +- Source/Core/Core/PowerPC/JitILCommon/IR.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/JitILCommon/IR.cpp b/Source/Core/Core/PowerPC/JitILCommon/IR.cpp index 5470a6eaa0..7e4624ea06 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/IR.cpp +++ b/Source/Core/Core/PowerPC/JitILCommon/IR.cpp @@ -1075,7 +1075,7 @@ bool IRBuilder::IsMarkUsed(InstLoc I) const { return MarkUsed[i]; } -unsigned IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const { +bool IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const { if (Op1 == Op2) { return true; } diff --git a/Source/Core/Core/PowerPC/JitILCommon/IR.h b/Source/Core/Core/PowerPC/JitILCommon/IR.h index d15b379f1c..b8eed3791c 100644 --- a/Source/Core/Core/PowerPC/JitILCommon/IR.h +++ b/Source/Core/Core/PowerPC/JitILCommon/IR.h @@ -566,7 +566,7 @@ public: private: IRBuilder(IRBuilder&); // DO NOT IMPLEMENT - unsigned isSameValue(InstLoc Op1, InstLoc Op2) const; + bool isSameValue(InstLoc Op1, InstLoc Op2) const; unsigned getComplexity(InstLoc I) const; unsigned getNumberOfOperands(InstLoc I) const; void simplifyCommutative(unsigned Opcode, InstLoc& Op1, InstLoc& Op2);