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 45cf24b..fce5913 100644
--- a/lib/AST/ExprConstant.cpp
+++ b/lib/AST/ExprConstant.cpp
@@ -927,7 +927,7 @@
       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);