Fixes for PR114: Thanks to Reid Spencer!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10029 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2003-11-16 20:21:15 +00:00
parent f3b2410bc4
commit 8b70b78ba4
28 changed files with 108 additions and 81 deletions

View File

@@ -31,7 +31,9 @@ template <> struct hash<std::string> {
// Provide a hash function for arbitrary pointers...
template <class T> struct hash<T *> {
inline size_t operator()(const T *Val) const { return (size_t)Val; }
inline size_t operator()(const T *Val) const {
return reinterpret_cast<size_t>(Val);
}
};
} // End namespace std