aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/StringMap.h
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2009-01-08 08:26:46 +0000
committerBill Wendling <isanbard@gmail.com>2009-01-08 08:26:46 +0000
commit38593664b02bca98904c4b1883b0a489b5aaacbe (patch)
treec2e2b814e9f310a30b3a2deefb7ca680fcd77576 /include/llvm/ADT/StringMap.h
parente5d7178b82b6cb2f2008f8e04a33ca0e47603baf (diff)
downloadexternal_llvm-38593664b02bca98904c4b1883b0a489b5aaacbe.zip
external_llvm-38593664b02bca98904c4b1883b0a489b5aaacbe.tar.gz
external_llvm-38593664b02bca98904c4b1883b0a489b5aaacbe.tar.bz2
* Don't explicitly cast "0" to "void*". This doesn't work well with specialized
StringMapEntryInitializer classes. Leave it for the compiler to figure out what the type is and what "0" should be transformed into. * Un-disable the unit tests which test the StringMapEntryInitializer class. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61922 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/StringMap.h')
-rw-r--r--include/llvm/ADT/StringMap.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/StringMap.h b/include/llvm/ADT/StringMap.h
index ac27055..aec84a9 100644
--- a/include/llvm/ADT/StringMap.h
+++ b/include/llvm/ADT/StringMap.h
@@ -182,7 +182,7 @@ public:
template<typename AllocatorTy>
static StringMapEntry *Create(const char *KeyStart, const char *KeyEnd,
AllocatorTy &Allocator) {
- return Create(KeyStart, KeyEnd, Allocator, (void*)0);
+ return Create(KeyStart, KeyEnd, Allocator, 0);
}
@@ -195,7 +195,7 @@ public:
}
static StringMapEntry *Create(const char *KeyStart, const char *KeyEnd) {
- return Create(KeyStart, KeyEnd, (void*)0);
+ return Create(KeyStart, KeyEnd, 0);
}
/// GetStringMapEntryFromValue - Given a value that is known to be embedded
@@ -378,7 +378,7 @@ public:
StringMapEntry<ValueTy> &GetOrCreateValue(const char *KeyStart,
const char *KeyEnd) {
- return GetOrCreateValue(KeyStart, KeyEnd, (void*)0);
+ return GetOrCreateValue(KeyStart, KeyEnd, 0);
}
/// remove - Remove the specified key/value pair from the map, but do not