summaryrefslogtreecommitdiffstats
path: root/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
diff options
context:
space:
mode:
authorJordy Rose <jediknil@belkadan.com>2011-08-23 19:01:07 +0000
committerJordy Rose <jediknil@belkadan.com>2011-08-23 19:01:07 +0000
commit7861276f47023671864dc1f0a7d1b5df5bf2a4ec (patch)
treea667f7f40519ba13a00c403a44a6819ae9bde497 /clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
parentf1ca6a6df68bb797b414964f53e6d8f6d51e640f (diff)
downloadbcm5719-llvm-7861276f47023671864dc1f0a7d1b5df5bf2a4ec.tar.gz
bcm5719-llvm-7861276f47023671864dc1f0a7d1b5df5bf2a4ec.zip
[analyzer] Move symbol death leak analysis from CFRefCount to RetainReleaseChecker.
llvm-svn: 138353
Diffstat (limited to 'clang/lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r--clang/lib/StaticAnalyzer/Core/ExprEngine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 1b72672dcaa..a555b77296a 100644
--- a/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/clang/lib/StaticAnalyzer/Core/ExprEngine.cpp
@@ -283,6 +283,9 @@ void ExprEngine::ProcessStmt(const CFGStmt S, StmtNodeBuilder& builder) {
ExplodedNodeSet Tmp2;
getTF().evalDeadSymbols(Tmp2, *this, *Builder, EntryNode,
EntryState, SymReaper);
+ if (Tmp2.empty()) {
+ Builder->MakeNode(Tmp2, currentStmt, EntryNode, EntryState);
+ }
ExplodedNodeSet Tmp3;
getCheckerManager().runCheckersForDeadSymbols(Tmp3, Tmp2,
OpenPOWER on IntegriCloud