From: Chris Lattner Date: Mon, 28 Apr 2008 06:32:08 +0000 (+0000) Subject: restore the copy ctor in SmallVector. This fixes serious X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e49e52d85601e8f732da16ca21e3de6cefd20158;p=oota-llvm.git restore the copy ctor in SmallVector. This fixes serious errors I introduced in my last patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50338 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index 18e1aae4a13..7e0eab194d0 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/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())