]> granicus.if.org Git - clang/commitdiff
Fix caching bug revealed by analyzing ClamAV using RegionStore.
authorTed Kremenek <kremenek@apple.com>
Fri, 17 Jul 2009 23:48:26 +0000 (23:48 +0000)
committerTed Kremenek <kremenek@apple.com>
Fri, 17 Jul 2009 23:48:26 +0000 (23:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@76262 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/GRExprEngine.cpp

index f83e92acb3a686b9aae7bf8faa830047750550e2..8a1bd1831f6eda85572583c17c4862a8dafb5fea 100644 (file)
@@ -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) {