diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index 978ec443032..7e40a075ed7 100644 --- a/include/llvm/ADT/StringMap.h +++ b/include/llvm/ADT/StringMap.h @@ -238,7 +238,8 @@ public: : StringMapImpl(static_cast(sizeof(MapEntryTy))), Allocator(A) {} StringMap(unsigned InitialSize, AllocatorTy A) - : StringMapImpl(InitialSize), Allocator(A) {} + : StringMapImpl(InitialSize, static_cast(sizeof(MapEntryTy))), + Allocator(A) {} StringMap(const StringMap &RHS) : StringMapImpl(static_cast(sizeof(MapEntryTy))) {