diff options
| author | Ted Kremenek <kremenek@apple.com> | 2008-04-18 16:30:14 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2008-04-18 16:30:14 +0000 |
| commit | 4f28515992dfd851ce482803d8f3174d667e7cdb (patch) | |
| tree | 840861ccd4d99e74e8472c962fdec47c053bfbb0 /lib/Analysis/CFRefCount.cpp | |
| parent | 684bb097fbb51fe4e8852925d93d6fd2adec31c7 (diff) | |
| download | clang-4f28515992dfd851ce482803d8f3174d667e7cdb.tar.gz clang-4f28515992dfd851ce482803d8f3174d667e7cdb.tar.bz2 clang-4f28515992dfd851ce482803d8f3174d667e7cdb.tar.xz | |
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/CFRefCount.cpp')
| -rw-r--r-- | lib/Analysis/CFRefCount.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/Analysis/CFRefCount.cpp b/lib/Analysis/CFRefCount.cpp index 1c2f20aa3b..1618f04359 100644 --- a/lib/Analysis/CFRefCount.cpp +++ b/lib/Analysis/CFRefCount.cpp @@ -1065,6 +1065,10 @@ void CFRefCount::EvalEndPath(GRExprEngine& Eng, } ExplodedNode<ValueState>* N = Builder.MakeNode(St); + + if (!N) + return; + std::vector<SymbolID>*& LeaksAtNode = Leaks[N]; assert (!LeaksAtNode); LeaksAtNode = new std::vector<SymbolID>(); |
