From: Chris Lattner Date: Mon, 28 Apr 2008 06:01:06 +0000 (+0000) Subject: generalize SmallVector copy ctor, there is no requirement for X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5da0b73aa11eca430ed9e03e157f8432870fa50b;p=oota-llvm.git generalize SmallVector copy ctor, there is no requirement for the initialization vector to have the same fixed size, just the same element type. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50334 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h index c2de17a881b..18e1aae4a13 100644 --- a/include/llvm/ADT/SmallVector.h +++ b/include/llvm/ADT/SmallVector.h @@ -486,7 +486,8 @@ public: append(S, E); } - SmallVector(const SmallVector &RHS) : SmallVectorImpl(NumTsAvailable) { + SmallVector(const SmallVectorImpl &RHS) + : SmallVectorImpl(NumTsAvailable) { if (!RHS.empty()) operator=(RHS); }