]> granicus.if.org Git - clang/commitdiff
[analyzer] Add stop-gap patch to prevent assertion failure when analyzing LLVM codebase.
authorTed Kremenek <kremenek@apple.com>
Wed, 27 Feb 2013 01:26:58 +0000 (01:26 +0000)
committerTed Kremenek <kremenek@apple.com>
Wed, 27 Feb 2013 01:26:58 +0000 (01:26 +0000)
This potentially reduces a performance optimization of throwing away
PreStmtPurgeDeadSymbols nodes.  I'll investigate the performance impact
soon and see if we need something better.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@176149 91177308-0d34-0410-b5e6-96231b3b80d8

lib/StaticAnalyzer/Core/ExplodedGraph.cpp

index a44c28341bf70365617403d806b30b297beb7b1a..2210b4e2d76fdecb1fed589073a1a350508a957a 100644 (file)
@@ -110,7 +110,7 @@ bool ExplodedGraph::shouldCollect(const ExplodedNode *node) {
   // analysis history and are not consulted by any client code.
   ProgramPoint progPoint = node->getLocation();
   if (progPoint.getAs<PreStmtPurgeDeadSymbols>())
-    return true;
+    return !progPoint.getTag();
 
   // Condition 3.
   if (!progPoint.getAs<PostStmt>() || progPoint.getAs<PostStore>())