forked from OSchip/llvm-project
Silence a GCC warning saying that unsigned >= UO_PostInc is always true.
llvm-svn: 112048
This commit is contained in:
parent
e302792b61
commit
12367e30e0
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue