diff options
author | Ted Kremenek <kremenek@apple.com> | 2012-02-16 20:19:30 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2012-02-16 20:19:30 +0000 |
commit | ea8dbdeefda2f7cd1d7637d7fa0d7d7eef9f4112 (patch) | |
tree | 70aff7d7d067dce92f90072827056b1a932bfdf2 /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | a2aa929e74babbec742ea259e5ea5584faceaa71 (diff) | |
download | bcm5719-llvm-ea8dbdeefda2f7cd1d7637d7fa0d7d7eef9f4112.tar.gz bcm5719-llvm-ea8dbdeefda2f7cd1d7637d7fa0d7d7eef9f4112.zip |
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: 150720
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index b0ed1815f9a..c65c38ba2d4 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -238,10 +238,7 @@ static bool shouldRemoveDeadBindings(AnalysisManager &AMgr, } void ExprEngine::ProcessStmt(const CFGStmt S, - ExplodedNode *Pred) { - // Reclaim any unnecessary nodes in the ExplodedGraph. - G.reclaimRecentlyAllocatedNodes(); - + ExplodedNode *Pred) { currentStmt = S.getStmt(); PrettyStackTraceLoc CrashInfo(getContext().getSourceManager(), currentStmt->getLocStart(), |