projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c1710e7
)
SmallVector: Declare explicit instantiations.
author
Thomas Köppe
<tkoeppe@google.com>
Mon, 28 Nov 2022 15:08:54 +0000
(16:08 +0100)
committer
Benjamin Kramer
<benny.kra@googlemail.com>
Mon, 28 Nov 2022 15:10:35 +0000
(16:10 +0100)
This was an ODR violation
llvm/include/llvm/ADT/SmallVector.h
patch
|
blob
|
history
diff --git
a/llvm/include/llvm/ADT/SmallVector.h
b/llvm/include/llvm/ADT/SmallVector.h
index
bbc5bc8
..
98dce89
100644
(file)
--- a/
llvm/include/llvm/ADT/SmallVector.h
+++ b/
llvm/include/llvm/ADT/SmallVector.h
@@
-1312,6
+1312,12
@@
template <typename Out, typename R> SmallVector<Out> to_vector_of(R &&Range) {
return {std::begin(Range), std::end(Range)};
}
+// Explicit instantiations
+extern template class llvm::SmallVectorBase<uint32_t>;
+#if SIZE_MAX > UINT32_MAX
+extern template class llvm::SmallVectorBase<uint64_t>;
+#endif
+
} // end namespace llvm
namespace std {