mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 23:18:58 +00:00
restore the copy ctor in SmallVector. This fixes serious
errors I introduced in my last patch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50338 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8eaff0449c
commit
e49e52d856
@ -486,6 +486,11 @@ public:
|
||||
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())
|
||||
|
Loading…
Reference in New Issue
Block a user