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 | 35e55fe49fdeb07499b6a7d20decbd44ae9755a6 (patch) | |
tree | 8b8982b9c65383cfbdf0329389f49ba26a8b368e /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | 429737556135b7ef26e078f877fe2437d8f20bbe (diff) | |
download | bcm5719-llvm-35e55fe49fdeb07499b6a7d20decbd44ae9755a6.tar.gz bcm5719-llvm-35e55fe49fdeb07499b6a7d20decbd44ae9755a6.zip |
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."
llvm-svn: 150722
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index c65c38ba2d4..b0ed1815f9a 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/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(), |