[cfe-commits] r70406 - /cfe/trunk/lib/AST/ExprConstant.cpp

Eli Friedman eli.friedman at gmail.com
Wed Apr 29 13:29:44 PDT 2009


Author: efriedma
Date: Wed Apr 29 15:29:43 2009
New Revision: 70406

URL: http://llvm.org/viewvc/llvm-project?rev=70406&view=rev
Log:
Minor simplification; also silences gcc warning.


Modified:
    cfe/trunk/lib/AST/ExprConstant.cpp

Modified: cfe/trunk/lib/AST/ExprConstant.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/ExprConstant.cpp?rev=70406&r1=70405&r2=70406&view=diff

==============================================================================
--- cfe/trunk/lib/AST/ExprConstant.cpp (original)
+++ cfe/trunk/lib/AST/ExprConstant.cpp Wed Apr 29 15:29:43 2009
@@ -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);





More information about the cfe-commits mailing list