From 267c0ab1b9a15768f3f15abbfc40ce344751c78b Mon Sep 17 00:00:00 2001 From: Eli Friedman Date: Wed, 29 Apr 2009 20:29:43 +0000 Subject: [PATCH] Minor simplification; also silences gcc warning. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@70406 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/AST/ExprConstant.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.50.1