diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h --- a/llvm/include/llvm/ADT/SmallVector.h +++ b/llvm/include/llvm/ADT/SmallVector.h @@ -1282,10 +1282,7 @@ return {std::begin(Range), std::end(Range)}; } template -SmallVector, - CalculateSmallVectorDefaultInlinedElements< - ValueTypeFromRangeType>::value> -to_vector(R &&Range) { +SmallVector> to_vector(R &&Range) { return {std::begin(Range), std::end(Range)}; }