aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRExprEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-18 19:34:16 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-18 19:34:16 +0000
commiteaa9edac11531178b14e060a32d0ac8b805021d0 (patch)
tree5a1bb541e52bf2ba895b3a23bdf0d241e7f4a87c /lib/Analysis/GRExprEngine.cpp
parentcb61292aeafc1dc1bc4064fb3d2733717d1d50e5 (diff)
Fixed elusive caching bug that led to false positives.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRExprEngine.cpp')
-rw-r--r--lib/Analysis/GRExprEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp
index 63986fb38a..2e474fc8e9 100644
--- a/lib/Analysis/GRExprEngine.cpp
+++ b/lib/Analysis/GRExprEngine.cpp
@@ -187,7 +187,8 @@ void GRExprEngine::ProcessStmt(Stmt* S, StmtNodeBuilder& builder) {
// If no nodes were generated, generate a new node that has all the
// dead mappings removed.
- if (Dst.size() == 1 && *Dst.begin() == StmtEntryNode)
+ if (Dst.size() == 1 && *Dst.begin() == StmtEntryNode &&
+ !Builder->hasGeneratedNode())
builder.generateNode(S, GetState(StmtEntryNode), StmtEntryNode);
// NULL out these variables to cleanup.