summaryrefslogtreecommitdiffstats
path: root/clang/lib
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2009-07-17 23:48:26 +0000
committerTed Kremenek <kremenek@apple.com>2009-07-17 23:48:26 +0000
commitfc311292da3e23371638a3300009f7c621b6de6d (patch)
tree8d692f9aaea1f9105dc8e8d65b4afa408ced3459 /clang/lib
parentfe9b768aaa58b069dd2ea3c3e223a36d034656ea (diff)
downloadbcm5719-llvm-fc311292da3e23371638a3300009f7c621b6de6d.tar.gz
bcm5719-llvm-fc311292da3e23371638a3300009f7c621b6de6d.zip
Fix caching bug revealed by analyzing ClamAV using RegionStore.
llvm-svn: 76262
Diffstat (limited to 'clang/lib')
-rw-r--r--clang/lib/Analysis/GRExprEngine.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Analysis/GRExprEngine.cpp b/clang/lib/Analysis/GRExprEngine.cpp
index f83e92acb3a..8a1bd1831f6 100644
--- a/clang/lib/Analysis/GRExprEngine.cpp
+++ b/clang/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) {
OpenPOWER on IntegriCloud