generalize SmallVector copy ctor, there is no requirement for
authorChris Lattner <sabre@nondot.org>
Mon, 28 Apr 2008 06:01:06 +0000 (06:01 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 28 Apr 2008 06:01:06 +0000 (06:01 +0000)
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

include/llvm/ADT/SmallVector.h

index c2de17a881b4213c61aa5bef32e8d373627e1c70..18e1aae4a13d3bd2031cf69723177a84d3d783ee 100644 (file)
@@ -486,7 +486,8 @@ public:
     append(S, E);
   }
   
-  SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(NumTsAvailable) {
+  SmallVector(const SmallVectorImpl<T> &RHS)
+    : SmallVectorImpl<T>(NumTsAvailable) {
     if (!RHS.empty())
       operator=(RHS);
   }