Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Apr 2010 17:23:31 +0000 (UTC)
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r207000 - projects/clangbsd/contrib/llvm/tools/clang/lib/AST
Message-ID:  <201004211723.o3LHNVDw018237@svn.freebsd.org>

index | next in thread | raw e-mail

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;


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201004211723.o3LHNVDw018237>