mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-08 03:30:22 +00:00
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
This commit is contained in:
parent
ffba5821ee
commit
5da0b73aa1
@ -486,7 +486,8 @@ public:
|
|||||||
append(S, E);
|
append(S, E);
|
||||||
}
|
}
|
||||||
|
|
||||||
SmallVector(const SmallVector &RHS) : SmallVectorImpl<T>(NumTsAvailable) {
|
SmallVector(const SmallVectorImpl<T> &RHS)
|
||||||
|
: SmallVectorImpl<T>(NumTsAvailable) {
|
||||||
if (!RHS.empty())
|
if (!RHS.empty())
|
||||||
operator=(RHS);
|
operator=(RHS);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user