[ADT/StringMap] Follow-up to r172455, use the correct constructor for setting the...
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 15 Jan 2013 01:58:45 +0000 (01:58 +0000)
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>
Tue, 15 Jan 2013 01:58:45 +0000 (01:58 +0000)
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

index 978ec4430329c1ef4641a49f8b7434cc4f3aac0e..7e40a075ed7481cc216bfeeea52f6693a8103c9b 100644 (file)
@@ -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))) {