[llvm-commits] [llvm] r62742 - in /llvm/tags/Apple/llvmCore-2093.1: ./ include/llvm/ADT/DenseMap.h
Bill Wendling
isanbard at gmail.com
Wed Jan 21 18:16:17 PST 2009
Author: void
Date: Wed Jan 21 20:16:17 2009
New Revision: 62742
URL: http://llvm.org/viewvc/llvm-project?rev=62742&view=rev
Log:
Include fix for 64-to-32 bit warning in 2093.
Added:
llvm/tags/Apple/llvmCore-2093.1/
- copied from r62734, llvm/tags/Apple/llvmCore-2093/
Modified:
llvm/tags/Apple/llvmCore-2093.1/include/llvm/ADT/DenseMap.h
Modified: llvm/tags/Apple/llvmCore-2093.1/include/llvm/ADT/DenseMap.h
URL: http://llvm.org/viewvc/llvm-project/llvm/tags/Apple/llvmCore-2093.1/include/llvm/ADT/DenseMap.h?rev=62742&r1=62734&r2=62742&view=diff
==============================================================================
--- llvm/tags/Apple/llvmCore-2093.1/include/llvm/ADT/DenseMap.h (original)
+++ llvm/tags/Apple/llvmCore-2093.1/include/llvm/ADT/DenseMap.h Wed Jan 21 20:16:17 2009
@@ -58,7 +58,9 @@
template<> struct DenseMapInfo<unsigned long> {
static inline unsigned long getEmptyKey() { return ~0L; }
static inline unsigned long getTombstoneKey() { return ~0L - 1L; }
- static unsigned getHashValue(const unsigned long& Val) { return Val * 37L; }
+ static unsigned getHashValue(const unsigned long& Val) {
+ return (unsigned)(Val * 37L);
+ }
static bool isPod() { return true; }
static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) {
return LHS == RHS;
More information about the llvm-commits
mailing list