Skip to content

Commit

Permalink
[ADT/StringMap] Follow-up to r172455, use the correct constructor for…
Browse files Browse the repository at this point in the history
… 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
  • Loading branch information
akyrtzi committed Jan 15, 2013
1 parent 1c1ff3b commit 47f3934
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/llvm/ADT/StringMap.h
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,8 @@ class StringMap : public StringMapImpl {
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))), Allocator(A) {}

StringMap(unsigned InitialSize, AllocatorTy A)
: StringMapImpl(InitialSize), Allocator(A) {}
: StringMapImpl(InitialSize, static_cast<unsigned>(sizeof(MapEntryTy))),
Allocator(A) {}

StringMap(const StringMap &RHS)
: StringMapImpl(static_cast<unsigned>(sizeof(MapEntryTy))) {
Expand Down

0 comments on commit 47f3934

Please sign in to comment.