[PATCH] D130774: [NFC] Remove redundant CalculateSmallVectorDefaultInlinedElements usage from to_vector utility
Dawid Jurczak via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 31 02:48:54 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG50eb5bcfcdcd: [NFC] Remove redundant CalculateSmallVectorDefaultInlinedElements usage from… (authored by yurai007).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D130774/new/
https://reviews.llvm.org/D130774
Files:
llvm/include/llvm/ADT/SmallVector.h
Index: llvm/include/llvm/ADT/SmallVector.h
===================================================================
--- llvm/include/llvm/ADT/SmallVector.h
+++ llvm/include/llvm/ADT/SmallVector.h
@@ -1282,10 +1282,7 @@
return {std::begin(Range), std::end(Range)};
}
template <typename R>
-SmallVector<ValueTypeFromRangeType<R>,
- CalculateSmallVectorDefaultInlinedElements<
- ValueTypeFromRangeType<R>>::value>
-to_vector(R &&Range) {
+SmallVector<ValueTypeFromRangeType<R>> to_vector(R &&Range) {
return {std::begin(Range), std::end(Range)};
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D130774.448847.patch
Type: text/x-patch
Size: 577 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220731/e09fbd70/attachment.bin>
More information about the llvm-commits
mailing list