[llvm-commits] [llvm] r172500 - /llvm/trunk/include/llvm/ADT/StringMap.h
Argyrios Kyrtzidis
akyrtzi at gmail.com
Mon Jan 14 17:58:45 PST 2013
Author: akirtzidis
Date: Mon Jan 14 19:58:45 2013
New Revision: 172500
URL: http://llvm.org/viewvc/llvm-project?rev=172500&view=rev
Log:
[ADT/StringMap] Follow-up to r172455, use the correct constructor for setting the InitialSize,
previously it was calling the "StringMapImpl(unsigned itemSize)" constructor.
Modified:
llvm/trunk/include/llvm/ADT/StringMap.h
Modified: llvm/trunk/include/llvm/ADT/StringMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/StringMap.h?rev=172500&r1=172499&r2=172500&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/StringMap.h (original)
+++ llvm/trunk/include/llvm/ADT/StringMap.h Mon Jan 14 19:58:45 2013
@@ -238,7 +238,8 @@
: 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))) {
More information about the llvm-commits
mailing list