summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/SmallVector.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-04-28 06:01:06 +0000
committerChris Lattner <sabre@nondot.org>2008-04-28 06:01:06 +0000
commit5da0b73aa11eca430ed9e03e157f8432870fa50b (patch)
tree68c20f66ac9afde65f3ef44f4a80a29d23853bc5 /include/llvm/ADT/SmallVector.h
parentffba5821eee7b7a6139f9dfb06b8d306bf344a9d (diff)
downloadllvm-5da0b73aa11eca430ed9e03e157f8432870fa50b.tar.gz
llvm-5da0b73aa11eca430ed9e03e157f8432870fa50b.tar.bz2
llvm-5da0b73aa11eca430ed9e03e157f8432870fa50b.tar.xz
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
Diffstat (limited to 'include/llvm/ADT/SmallVector.h')
-rw-r--r--include/llvm/ADT/SmallVector.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallVector.h b/include/llvm/ADT/SmallVector.h
index c2de17a881..18e1aae4a1 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<T>(NumTsAvailable) {
+ SmallVector(const SmallVectorImpl<T> &RHS)
+ : SmallVectorImpl<T>(NumTsAvailable) {
if (!RHS.empty())
operator=(RHS);
}