diff options
author | Ted Kremenek <kremenek@apple.com> | 2009-07-17 23:48:26 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2009-07-17 23:48:26 +0000 |
commit | 1152fc081cb721c4ccb94e7fc60585deb72dbce8 (patch) | |
tree | 016800b7a75caebb1825034739f011ff82b671b9 | |
parent | 6dc534ecc19a045ebcfe93eefa45da509968e888 (diff) |
Fix caching bug revealed by analyzing ClamAV using RegionStore.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76262 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Analysis/GRExprEngine.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Analysis/GRExprEngine.cpp b/lib/Analysis/GRExprEngine.cpp index f83e92acb3..8a1bd1831f 100644 --- a/lib/Analysis/GRExprEngine.cpp +++ b/lib/Analysis/GRExprEngine.cpp @@ -2205,8 +2205,7 @@ void GRExprEngine::VisitDeclStmt(DeclStmt* DS, NodeTy* Pred, NodeSet& Dst) { if (InitEx) Visit(InitEx, Pred, Tmp); - - if (Tmp.empty()) + else Tmp.Add(Pred); for (NodeSet::iterator I=Tmp.begin(), E=Tmp.end(); I!=E; ++I) { |