diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-25 13:24:04 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-08-25 13:24:04 +0000 |
commit | 993cdca0fed7deb646e4654dfb2607227a497faa (patch) | |
tree | 378fa44bb581e0f50f2ead4a886a5ced181949e4 | |
parent | 2de56d1d0c3a504ad1529de2677628bdfbb95cd4 (diff) |
Silence a GCC warning saying that unsigned >= UO_PostInc is always true.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@112048 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/clang/AST/Expr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/clang/AST/Expr.h b/include/clang/AST/Expr.h index e96a33f503..61159fdc4a 100644 --- a/include/clang/AST/Expr.h +++ b/include/clang/AST/Expr.h @@ -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; |