]> granicus.if.org Git - clang/commitdiff
use DenseSet instead of SmallSet.
authorZhongxing Xu <xuzhongxing@gmail.com>
Sun, 18 Oct 2009 04:15:47 +0000 (04:15 +0000)
committerZhongxing Xu <xuzhongxing@gmail.com>
Sun, 18 Oct 2009 04:15:47 +0000 (04:15 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@84398 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/RegionStore.cpp

index 400934d50eb60fd9dca9b94f62a4550988a4bbcb..35eb5b7019fc26725ca2dcc4c5df2bb20cc403d7 100644 (file)
@@ -1630,7 +1630,7 @@ void RegionStoreManager::RemoveDeadBindings(GRState &state, Stmt* Loc,
   // Process the "intermediate" roots to find if they are referenced by
   // real roots.
   llvm::SmallVector<RBDNode, 10> WorkList;
-  llvm::SmallSet<const MemRegion*, 10> IntermediateVisited;
+  llvm::DenseSet<const MemRegion*> IntermediateVisited;
   
   while (!IntermediateRoots.empty()) {
     const MemRegion* R = IntermediateRoots.back();
@@ -1665,7 +1665,7 @@ void RegionStoreManager::RemoveDeadBindings(GRState &state, Stmt* Loc,
   }
   RegionRoots.clear();
   
-  llvm::SmallSet<RBDNode, 10> Visited;
+  llvm::DenseSet<RBDNode> Visited;
   
   while (!WorkList.empty()) {
     RBDNode N = WorkList.back();