diff options
author | Anna Zaks <ganna@apple.com> | 2012-06-01 23:48:40 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-06-01 23:48:40 +0000 |
commit | 144e52be486a3906aec90c51b0ac94a30313152e (patch) | |
tree | 601217932d4d7de22d440d4ee730ded2985d132d /lib | |
parent | dd82519ac6c322a6183954848b5b55deb6c364f7 (diff) |
[analyzer] Fix lack of coverage after empty inlined function.
We should not stop exploring the path after we return from an empty
function.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@157859 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp b/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp index cab812ffdc..a3486e7fbf 100644 --- a/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp +++ b/lib/StaticAnalyzer/Core/ExprEngineCallAndReturn.cpp @@ -159,6 +159,8 @@ void ExprEngine::processCallExit(ExplodedNode *CEBNode) { removeDead(BindedRetNode, CleanedNodes, 0, callerCtx, LastSt, ProgramPoint::PostStmtPurgeDeadSymbolsKind); currentBuilderContext = 0; + } else { + CleanedNodes.Add(CEBNode); } for (ExplodedNodeSet::iterator I = CleanedNodes.begin(), |