Minor simplification; also silences gcc warning.

llvm-svn: 70406
This commit is contained in:
Eli Friedman 2009-04-29 20:29:43 +00:00
parent d9b11b2ef4
commit 8b171f6516
1 changed files with 1 additions and 1 deletions

View File

@ -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);