From: Chris Lattner Date: Sun, 7 Oct 2007 17:57:10 +0000 (+0000) Subject: Finish off PR1723, by working around some strange compiler bug. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=f8a3ee1d637a747c87f72bc880445e6a82280ff0;p=oota-llvm.git Finish off PR1723, by working around some strange compiler bug. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42737 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/llvm/ADT/DenseMap.h b/include/llvm/ADT/DenseMap.h index 78d8f83cbb4..bee2a3e49bb 100644 --- a/include/llvm/ADT/DenseMap.h +++ b/include/llvm/ADT/DenseMap.h @@ -36,8 +36,8 @@ struct DenseMapInfo { static inline T* getEmptyKey() { return reinterpret_cast(-1); } static inline T* getTombstoneKey() { return reinterpret_cast(-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; }