[llvm-commits] [llvm] r50338 - /llvm/trunk/include/llvm/ADT/SmallVector.h
Chris Lattner
sabre at nondot.org
Sun Apr 27 23:32:08 PDT 2008
Author: lattner
Date: Mon Apr 28 01:32:08 2008
New Revision: 50338
URL: http://llvm.org/viewvc/llvm-project?rev=50338&view=rev
Log:
restore the copy ctor in SmallVector. This fixes serious
errors I introduced in my last patch.
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=50338&r1=50337&r2=50338&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallVector.h Mon Apr 28 01:32:08 2008
@@ -486,6 +486,11 @@
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())
More information about the llvm-commits
mailing list