diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-15 01:58:45 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2013-01-15 01:58:45 +0000 |
commit | 47f39340211f537cf79610832194c1884d420d62 (patch) | |
tree | 2c85178662f11132a90f08b348f409c788cb714f /include/llvm/ADT | |
parent | 1c1ff3b7ff3b473acd1b92970ceeed3c62fbee5a (diff) | |
download | external_llvm-47f39340211f537cf79610832194c1884d420d62.zip external_llvm-47f39340211f537cf79610832194c1884d420d62.tar.gz external_llvm-47f39340211f537cf79610832194c1884d420d62.tar.bz2 |
[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')
-rw-r--r-- | include/llvm/ADT/StringMap.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h index 978ec44..7e40a07 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))) { |