[cfe-commits] r145856 - /cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp

Anna Zaks ganna at apple.com
Mon Dec 5 13:33:02 PST 2011


Author: zaks
Date: Mon Dec  5 15:33:01 2011
New Revision: 145856

URL: http://llvm.org/viewvc/llvm-project?rev=145856&view=rev
Log:
[analyzer] Simplify the condition.

This is a fixup for r145832.

The extra clauses do not matter after we remove the dependency on canReasonAbout(InitVal) in r145832.

Modified:
    cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp

Modified: cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp?rev=145856&r1=145855&r2=145856&view=diff
==============================================================================
--- cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp (original)
+++ cfe/trunk/lib/StaticAnalyzer/Core/ExprEngineC.cpp Mon Dec  5 15:33:01 2011
@@ -357,9 +357,7 @@
       
       // Recover some path-sensitivity if a scalar value evaluated to
       // UnknownVal.
-      if ((InitVal.isUnknown()) &&
-          !VD->getType()->isReferenceType() &&
-          !Pred->getState()->isTainted(InitVal)) {
+      if (InitVal.isUnknown()) {
         InitVal = svalBuilder.getConjuredSymbolVal(NULL, InitEx,
                                  currentBuilderContext->getCurrentBlockCount());
       }





More information about the cfe-commits mailing list