From a03159bc35816e0cd70396a0f34dbb1d2939d351 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 28 Apr 2008 06:01:06 +0000 Subject: [PATCH] generalize SmallVector copy ctor, there is no requirement for the initialization vector to have the same fixed size, just the same element type. llvm-svn: 50334 --- include/llvm/ADT/SmallVector.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); }