From: Argyrios Kyrtzidis Date: Tue, 15 Jan 2013 01:58:45 +0000 (+0000) Subject: [ADT/StringMap] Follow-up to r172455, use the correct constructor for setting the... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=47f39340211f537cf79610832194c1884d420d62;p=oota-llvm.git [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 --- 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))) {