From: Eli Friedman Date: Wed, 29 Apr 2009 20:29:43 +0000 (+0000) Subject: Minor simplification; also silences gcc warning. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=267c0ab1b9a15768f3f15abbfc40ce344751c78b;p=clang Minor simplification; also silences gcc warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70406 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/AST/ExprConstant.cpp b/lib/AST/ExprConstant.cpp index 45cf24b963..fce59133c1 100644 --- a/lib/AST/ExprConstant.cpp +++ b/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);