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 | 12367e30e04e0f90e1c3b917fb7e596b74ad9a3e (patch) | |
| tree | df6ec7bb88b3bc063b1e4f24aadb7666ff1615f5 | |
| parent | e302792b6155bb195f88610a1ebde38343cf402e (diff) | |
| download | bcm5719-llvm-12367e30e04e0f90e1c3b917fb7e596b74ad9a3e.tar.gz bcm5719-llvm-12367e30e04e0f90e1c3b917fb7e596b74ad9a3e.zip | |
Silence a GCC warning saying that unsigned >= UO_PostInc is always true.
llvm-svn: 112048
| -rw-r--r-- | clang/include/clang/AST/Expr.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/include/clang/AST/Expr.h b/clang/include/clang/AST/Expr.h index e96a33f503e..61159fdc4a6 100644 --- a/clang/include/clang/AST/Expr.h +++ b/clang/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; |

