[llvm-commits] [llvm] r50334 - /llvm/trunk/include/llvm/ADT/SmallVector.h

Chris Lattner sabre at nondot.org
Sun Apr 27 23:01:07 PDT 2008


Author: lattner
Date: Mon Apr 28 01:01:06 2008
New Revision: 50334

URL: http://llvm.org/viewvc/llvm-project?rev=50334&view=rev
Log:
generalize SmallVector copy ctor, there is no requirement for
the initialization vector to have the same fixed size, just the
same element type.

Modified:
    llvm/trunk/include/llvm/ADT/SmallVector.h

Modified: llvm/trunk/include/llvm/ADT/SmallVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallVector.h?rev=50334&r1=50333&r2=50334&view=diff

==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Mon Apr 28 01:01:06 2008
@@ -486,7 +486,8 @@
     append(S, E);
   }
   
-  SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(NumTsAvailable) {
+  SmallVector(const SmallVectorImpl<T> &RHS)
+    : SmallVectorImpl<T>(NumTsAvailable) {
     if (!RHS.empty())
       operator=(RHS);
   }





More information about the llvm-commits mailing list