aboutsummaryrefslogtreecommitdiff
path: root/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
commit38f17d6c86417944403dfa2b0d50a0dc92efa9ce (patch)
tree2fe2ad8aad8a1edaea205e1955da5231df95cc81 /lib/StaticAnalyzer/Core/ExprEngine.cpp
parent3ac1fbc303d22af2e11a14023ecee7bd7b7d0bfd (diff)
[analyzer] Move symbol death leak analysis from CFRefCount to RetainReleaseChecker.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@138353 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/StaticAnalyzer/Core/ExprEngine.cpp')
-rw-r--r--lib/StaticAnalyzer/Core/ExprEngine.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngine.cpp b/lib/StaticAnalyzer/Core/ExprEngine.cpp
index 1b72672dca..a555b77296 100644
--- a/lib/StaticAnalyzer/Core/ExprEngine.cpp
+++ b/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,