isSameValue in IR.cpp/.h should be returning a boolean value.

This commit is contained in:
Lioncash 2014-02-23 04:14:57 -05:00
parent 080a83e446
commit e3e78128a2
2 changed files with 2 additions and 2 deletions

View File

@ -1075,7 +1075,7 @@ bool IRBuilder::IsMarkUsed(InstLoc I) const {
return MarkUsed[i]; return MarkUsed[i];
} }
unsigned IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const { bool IRBuilder::isSameValue(InstLoc Op1, InstLoc Op2) const {
if (Op1 == Op2) { if (Op1 == Op2) {
return true; return true;
} }

View File

@ -566,7 +566,7 @@ public:
private: private:
IRBuilder(IRBuilder&); // DO NOT IMPLEMENT 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 getComplexity(InstLoc I) const;
unsigned getNumberOfOperands(InstLoc I) const; unsigned getNumberOfOperands(InstLoc I) const;
void simplifyCommutative(unsigned Opcode, InstLoc& Op1, InstLoc& Op2); void simplifyCommutative(unsigned Opcode, InstLoc& Op1, InstLoc& Op2);