diff options
author | Anna Zaks <ganna@apple.com> | 2011-09-30 02:03:00 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2011-09-30 02:03:00 +0000 |
commit | 8d4c8e14988c774a502bd6d58a8df66f2a2f9e86 (patch) | |
tree | 257f8588a2f71b0cb8a3aa45a83fd0c0f20ff88e /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | |
parent | a4b02c30dea1fce96eb0e8afb8f3f73575a9e7bf (diff) | |
download | bcm5719-llvm-8d4c8e14988c774a502bd6d58a8df66f2a2f9e86.tar.gz bcm5719-llvm-8d4c8e14988c774a502bd6d58a8df66f2a2f9e86.zip |
[analyzer] Add -analyzer-purge option which can take on multiple values, remove -analyzer-purge=none. (Small refactor as well: move the work of constructing AnalysisManager from the callers to the class itself.)
llvm-svn: 140838
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r-- | clang/lib/StaticAnalyzer/Core/ExprEngine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp index d982a698d3d..da9b70594b4 100644 --- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp +++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp @@ -242,7 +242,7 @@ void ExprEngine::ProcessStmt(const CFGStmt S, StmtNodeBuilder& builder) { const LocationContext *LC = EntryNode->getLocationContext(); SymbolReaper SymReaper(LC, currentStmt, SymMgr, getStoreManager()); - if (AMgr.shouldPurgeDead()) { + if (AMgr.getPurgeMode() != PurgeNone) { getCheckerManager().runCheckersForLiveSymbols(CleanedState, SymReaper); const StackFrameContext *SFC = LC->getCurrentStackFrame(); |