diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-02-16 20:48:04 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-02-16 20:48:04 +0000 |
commit | 2ac58b7c09938bb28c51c7cd2deada609b75f94c (patch) | |
tree | d97438f7e5674c60cb1832f12944b419120150cc /lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | b9c64d84ea3edd5e2fffb0a2e85ca1308be4f429 (diff) |
Revert "Move ExplodedNode reclaimation out of ExprEngine and into CoreEngine. Also have it based on adding predecessors/successors, not node allocation. No measurable performance change."
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r-- | lib/StaticAnalyzer/Core/ExprEngine.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp index c65c38ba2d..b0ed1815f9 100644 --- a/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -238,7 +238,10 @@ static bool shouldRemoveDeadBindings(AnalysisManager &AMgr, } void ExprEngine::ProcessStmt(const CFGStmt S, - ExplodedNode *Pred) { + ExplodedNode *Pred) { + // Reclaim any unnecessary nodes in the ExplodedGraph. + G.reclaimRecentlyAllocatedNodes(); + currentStmt = S.getStmt(); PrettyStackTraceLoc CrashInfo(getContext().getSourceManager(), currentStmt->getLocStart(), |