diff --git a/include/llvm/Analysis/DominatorInternals.h b/include/llvm/Analysis/DominatorInternals.h index 7d15fc4ad36..6f66580025c 100644 --- a/include/llvm/Analysis/DominatorInternals.h +++ b/include/llvm/Analysis/DominatorInternals.h @@ -198,7 +198,7 @@ void Calculate(DominatorTreeBase::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 Buckets; + SmallVector Buckets; Buckets.resize(N + 1); for (unsigned i = 1; i <= N; ++i) Buckets[i] = i;