forked from OSchip/llvm-project
restore the copy ctor in SmallVector. This fixes serious
errors I introduced in my last patch. llvm-svn: 50338
This commit is contained in:
parent
8c7f5ad968
commit
d03f4516cf
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue