mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-21 16:31:16 +00:00
Convert a std::vector to a SmallVector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124055 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
c85dca66e6
commit
907b56ce7a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user