diff options
Diffstat (limited to 'include/llvm/ADT/StringMap.h')
-rw-r--r-- | include/llvm/ADT/StringMap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index 978ec44..7e40a07 100644 --- a/include/llvm/ADT/StringMap.h +++ b/include/llvm/ADT/StringMap.h @@ -238,7 +238,8 @@ public: : 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))) { |