Convert a std::vector to a SmallVector.
authorCameron Zwarich <zwarich@apple.com>
Sun, 23 Jan 2011 04:30:59 +0000 (04:30 +0000)
committerCameron Zwarich <zwarich@apple.com>
Sun, 23 Jan 2011 04:30:59 +0000 (04:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124055 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DominatorInternals.h

index 7d15fc4ad36415c7449850f20da78ea674ca3d93..6f66580025cbcafcc1a6363481e29c7cb5239304 100644 (file)
@@ -198,7 +198,7 @@ void Calculate(DominatorTreeBase<typename GraphTraits<NodeT>::NodeType>& DT,
   // Buckets[i] stores the index of the first element in V's bucket. After V's
   // bucket is processed, Buckets[i] stores the index of the next element in the
   // bucket containing V, if any.
-  std::vector<unsigned> Buckets;
+  SmallVector<unsigned, 32> Buckets;
   Buckets.resize(N + 1);
   for (unsigned i = 1; i <= N; ++i)
     Buckets[i] = i;