diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-10-07 17:57:10 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-10-07 17:57:10 +0000 |
| commit | 7cdae91966c8701ce55c764c459e947e07e304d9 (patch) | |
| tree | 46f8b1d4b4fd0bbe7af7e9b5b209061a36cce358 /llvm | |
| parent | 751ebf7b9aab628f654b78919c7fae697918462b (diff) | |
| download | bcm5719-llvm-7cdae91966c8701ce55c764c459e947e07e304d9.tar.gz bcm5719-llvm-7cdae91966c8701ce55c764c459e947e07e304d9.zip | |
Finish off PR1723, by working around some strange compiler bug.
llvm-svn: 42737
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/ADT/DenseMap.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/DenseMap.h b/llvm/include/llvm/ADT/DenseMap.h index 78d8f83cbb4..bee2a3e49bb 100644 --- a/llvm/include/llvm/ADT/DenseMap.h +++ b/llvm/include/llvm/ADT/DenseMap.h @@ -36,8 +36,8 @@ struct DenseMapInfo<T*> { static inline T* getEmptyKey() { return reinterpret_cast<T*>(-1); } static inline T* getTombstoneKey() { return reinterpret_cast<T*>(-2); } static unsigned getHashValue(const T *PtrVal) { - return (unsigned(uintptr_t(PtrVal)) >> 4) ^ - (unsigned(uintptr_t(PtrVal)) >> 9); + return (unsigned((uintptr_t)PtrVal) >> 4) ^ + (unsigned((uintptr_t)PtrVal) >> 9); } static bool isEqual(const T *LHS, const T *RHS) { return LHS == RHS; } static bool isPod() { return true; } |

