summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/StringMap.h
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-15 01:58:45 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2013-01-15 01:58:45 +0000
commit47f39340211f537cf79610832194c1884d420d62 (patch)
tree2c85178662f11132a90f08b348f409c788cb714f /include/llvm/ADT/StringMap.h
parent1c1ff3b7ff3b473acd1b92970ceeed3c62fbee5a (diff)
downloadllvm-47f39340211f537cf79610832194c1884d420d62.tar.gz
llvm-47f39340211f537cf79610832194c1884d420d62.tar.bz2
llvm-47f39340211f537cf79610832194c1884d420d62.tar.xz
[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
Diffstat (limited to 'include/llvm/ADT/StringMap.h')
-rw-r--r--include/llvm/ADT/StringMap.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h
index 978ec44303..7e40a075ed 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))) {