restore the copy ctor in SmallVector. This fixes serious

errors I introduced in my last patch.

llvm-svn: 50338
This commit is contained in:
Chris Lattner 2008-04-28 06:32:08 +00:00
parent 8c7f5ad968
commit d03f4516cf
1 changed files with 5 additions and 0 deletions

View File

@ -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())