mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-04 03:06:28 +00:00
Finish off PR1723, by working around some strange compiler bug.
llvm-svn: 42737
This commit is contained in:
parent
454d171c26
commit
ddd980044f
@ -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; }
|
||||
|
Loading…
x
Reference in New Issue
Block a user