diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/include/llvm/ADT/SmallVector.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h index 18e1aae4a13..7e0eab194d0 100644 --- a/llvm/include/llvm/ADT/SmallVector.h +++ b/llvm/include/llvm/ADT/SmallVector.h @@ -486,6 +486,11 @@ public: append(S, E); } + SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(NumTsAvailable) { + if (!RHS.empty()) + operator=(RHS); + } + SmallVector(const SmallVectorImpl<T> &RHS) : SmallVectorImpl<T>(NumTsAvailable) { if (!RHS.empty()) |