diff options
| author | Eli Friedman <eli.friedman@gmail.com> | 2009-04-29 20:29:43 +0000 |
|---|---|---|
| committer | Eli Friedman <eli.friedman@gmail.com> | 2009-04-29 20:29:43 +0000 |
| commit | 8b171f651653e6d405f29364c6d9142692b4380e (patch) | |
| tree | 1042cc1fa5df228ca342cf5e8dc567022045d799 /clang/lib/AST | |
| parent | d9b11b2ef45045e78be604a20ede80fcb4d77414 (diff) | |
| download | bcm5719-llvm-8b171f651653e6d405f29364c6d9142692b4380e.tar.gz bcm5719-llvm-8b171f651653e6d405f29364c6d9142692b4380e.zip | |
Minor simplification; also silences gcc warning.
llvm-svn: 70406
Diffstat (limited to 'clang/lib/AST')
| -rw-r--r-- | clang/lib/AST/ExprConstant.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/AST/ExprConstant.cpp b/clang/lib/AST/ExprConstant.cpp index 45cf24b9638..fce59133c10 100644 --- a/clang/lib/AST/ExprConstant.cpp +++ b/clang/lib/AST/ExprConstant.cpp @@ -927,7 +927,7 @@ bool IntExprEvaluator::VisitBinaryOperator(const BinaryOperator *E) { bool Result; if (E->getOpcode() == BinaryOperator::EQ) { Result = LHSValue.getLValueOffset() == RHSValue.getLValueOffset(); - } else if (E->getOpcode() == BinaryOperator::NE) { + } else { Result = LHSValue.getLValueOffset() != RHSValue.getLValueOffset(); } return Success(Result, E); |

