summaryrefslogtreecommitdiffstats
path: root/clang/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
commitacefba896cbb1959c9dfcfac95afc835fe87f03e (patch)
treec2228cfafe9a4a27ca01dcba890738af1d39d263 /clang/lib/Analysis/GRExprEngine.cpp
parentd556115e7e2033738f29e3b3bd5ba1ce78582d12 (diff)
downloadbcm5719-llvm-acefba896cbb1959c9dfcfac95afc835fe87f03e.tar.gz
bcm5719-llvm-acefba896cbb1959c9dfcfac95afc835fe87f03e.zip
Fixed elusive caching bug that led to false positives.
llvm-svn: 49914
Diffstat (limited to 'clang/lib/Analysis/GRExprEngine.cpp')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index 63986fb38a5..2e474fc8e9a 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/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.
OpenPOWER on IntegriCloud