diff --git a/llvm/include/llvm/ADT/SmallVector.h b/llvm/include/llvm/ADT/SmallVector.h index 18e1aae4a13d..7e0eab194d0b 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(NumTsAvailable) { + if (!RHS.empty()) + operator=(RHS); + } + SmallVector(const SmallVectorImpl &RHS) : SmallVectorImpl(NumTsAvailable) { if (!RHS.empty())