From 47f39340211f537cf79610832194c1884d420d62 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Tue, 15 Jan 2013 01:58:45 +0000 Subject: [PATCH] [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 --- include/llvm/ADT/StringMap.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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))) {