From: Ted Kremenek Date: Fri, 17 Jul 2009 23:48:26 +0000 (+0000) Subject: Fix caching bug revealed by analyzing ClamAV using RegionStore. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1152fc081cb721c4ccb94e7fc60585deb72dbce8;p=clang 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 --- 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) {