mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 20:32:21 +00:00
Add a default parameter to a SmallVector constructor to allow it to
be called with just an initial length value, just like in std::vector. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37779 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
00d8a84b44
commit
8b42bcdd1a
@ -442,7 +442,7 @@ public:
|
||||
SmallVector() : SmallVectorImpl<T>(NumTsAvailable) {
|
||||
}
|
||||
|
||||
SmallVector(unsigned Size, const T &Value)
|
||||
SmallVector(unsigned Size, const T &Value = T())
|
||||
: SmallVectorImpl<T>(NumTsAvailable) {
|
||||
this->reserve(Size);
|
||||
while (Size--)
|
||||
|
Loading…
Reference in New Issue
Block a user