aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/llvm/ADT/SmallVector.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index d5e9900e5a..a1d226be07 100644
--- a/include/llvm/ADT/SmallVector.h
+++ b/include/llvm/ADT/SmallVector.h
@@ -51,6 +51,12 @@ public:
SmallVector() : Begin((T*)InlineElts), End(Begin), Capacity(Begin+N) {
}
+ template<typename ItTy>
+ SmallVector(ItTy S, ItTy E)
+ : Begin((T*)InlineElts), End(Begin), Capacity(Begin+N) {
+ append(S, E);
+ }
+
SmallVector(const SmallVector &RHS) {
unsigned RHSSize = RHS.size();
Begin = (T*)InlineElts;