aboutsummaryrefslogtreecommitdiff
path: root/lib/Analysis/GRCoreEngine.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-04-18 16:30:14 +0000
committerTed Kremenek <kremenek@apple.com>2008-04-18 16:30:14 +0000
commit4f28515992dfd851ce482803d8f3174d667e7cdb (patch)
tree840861ccd4d99e74e8472c962fdec47c053bfbb0 /lib/Analysis/GRCoreEngine.cpp
parent684bb097fbb51fe4e8852925d93d6fd2adec31c7 (diff)
Fixed bug in GREndPathNodeBuilder: only return a node if it wasn't in the node cache.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49907 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/GRCoreEngine.cpp')
-rw-r--r--lib/Analysis/GRCoreEngine.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Analysis/GRCoreEngine.cpp b/lib/Analysis/GRCoreEngine.cpp
index ffb2fd2feb..7ad7f73abf 100644
--- a/lib/Analysis/GRCoreEngine.cpp
+++ b/lib/Analysis/GRCoreEngine.cpp
@@ -456,7 +456,8 @@ ExplodedNodeImpl* GREndPathNodeBuilderImpl::generateNodeImpl(void* State) {
if (IsNew) {
Node->markAsSink();
Eng.G->addEndOfPath(Node);
+ return Node;
}
- return Node;
+ return NULL;
}