svn commit: r207000 - projects/clangbsd/contrib/llvm/tools/clang/lib/AST

Roman Divacky rdivacky at FreeBSD.org
Wed Apr 21 17:23:32 UTC 2010


Author: rdivacky
Date: Wed Apr 21 17:23:31 2010
New Revision: 207000
URL: http://svn.freebsd.org/changeset/base/207000

Log:
  temporarily disable the const if-stmt optimization
  thus unbreaking static binaries (ie. make)

Modified:
  projects/clangbsd/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp

Modified: projects/clangbsd/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp
==============================================================================
--- projects/clangbsd/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp	Wed Apr 21 17:00:15 2010	(r206999)
+++ projects/clangbsd/contrib/llvm/tools/clang/lib/AST/ExprConstant.cpp	Wed Apr 21 17:23:31 2010	(r207000)
@@ -1171,7 +1171,7 @@ bool IntExprEvaluator::VisitBinaryOperat
       // Reject any bases from the normal codepath; we special-case comparisons
       // to null.
       if (LHSValue.getLValueBase()) {
-        if (!E->isEqualityOp())
+//        if (!E->isEqualityOp())
           return false;
         if (RHSValue.getLValueBase() || !RHSValue.getLValueOffset().isZero())
           return false;
@@ -1180,7 +1180,7 @@ bool IntExprEvaluator::VisitBinaryOperat
           return false;
         return Success(bres ^ (E->getOpcode() == BinaryOperator::EQ), E);
       } else if (RHSValue.getLValueBase()) {
-        if (!E->isEqualityOp())
+//        if (!E->isEqualityOp())
           return false;
         if (LHSValue.getLValueBase() || !LHSValue.getLValueOffset().isZero())
           return false;


More information about the svn-src-projects mailing list