Silence a GCC warning saying that unsigned >= UO_PostInc is always true.

llvm-svn: 112048
This commit is contained in:
Benjamin Kramer 2010-08-25 13:24:04 +00:00
parent e302792b61
commit 12367e30e0
1 changed files with 2 additions and 2 deletions

View File

@ -1080,10 +1080,10 @@ public:
bool isPrefix() const { return isPrefix(getOpcode()); }
bool isPostfix() const { return isPostfix(getOpcode()); }
bool isIncrementOp() const {
return Opc == UO_PreInc || getOpcode() == UO_PostInc;
return Opc == UO_PreInc || Opc == UO_PostInc;
}
bool isIncrementDecrementOp() const {
return Opc >= UO_PostInc && Opc <= UO_PreDec;
return Opc <= UO_PreDec;
}
static bool isArithmeticOp(Opcode Op) {
return Op >= UO_Plus && Op <= UO_LNot;