mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-15 06:29:05 +00:00
[ADT/StringMap] Follow-up to r172455, use the correct constructor for setting the InitialSize,
previously it was calling the "StringMapImpl(unsigned itemSize)" constructor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@172500 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -238,7 +238,8 @@ public:
|
|||||||
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
|
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}
|
||||||
|
|
||||||
StringMap(unsigned InitialSize, AllocatorTy A)
|
StringMap(unsigned InitialSize, AllocatorTy A)
|
||||||
: StringMapImpl(InitialSize), Allocator(A) {}
|
: StringMapImpl(InitialSize, static_cast<unsigned>(sizeof(MapEntryTy))),
|
||||||
|
Allocator(A) {}
|
||||||
|
|
||||||
StringMap(const StringMap &RHS)
|
StringMap(const StringMap &RHS)
|
||||||
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {
|
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {
|
||||||
|
Reference in New Issue
Block a user