mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 11:42:57 +01:00
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
This commit is contained in:
parent
ede7e89144
commit
a03159bc35
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user