aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT/DenseMapInfo.h
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2009-10-17 23:56:18 +0000
committerEric Christopher <echristo@apple.com>2009-10-17 23:56:18 +0000
commit3a8ff4c8b67d12689cb5fc9c0e9606f4530e6f41 (patch)
tree44962d5f65b5db970a7836864673a1ffbb0dcc55 /include/llvm/ADT/DenseMapInfo.h
parent3fc35c594cbe48070ad69eaa2fdca1e9424c9fd4 (diff)
downloadexternal_llvm-3a8ff4c8b67d12689cb5fc9c0e9606f4530e6f41.zip
external_llvm-3a8ff4c8b67d12689cb5fc9c0e9606f4530e6f41.tar.gz
external_llvm-3a8ff4c8b67d12689cb5fc9c0e9606f4530e6f41.tar.bz2
More warnings patrol: Another unused argument and more implicit
conversions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT/DenseMapInfo.h')
-rw-r--r--include/llvm/ADT/DenseMapInfo.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/ADT/DenseMapInfo.h b/include/llvm/ADT/DenseMapInfo.h
index 52ac5f9..2f241c5 100644
--- a/include/llvm/ADT/DenseMapInfo.h
+++ b/include/llvm/ADT/DenseMapInfo.h
@@ -76,7 +76,7 @@ template<> struct DenseMapInfo<unsigned long> {
static inline unsigned long getEmptyKey() { return ~0UL; }
static inline unsigned long getTombstoneKey() { return ~0UL - 1L; }
static unsigned getHashValue(const unsigned long& Val) {
- return Val * 37UL;
+ return (unsigned)(Val * 37UL);
}
static bool isPod() { return true; }
static bool isEqual(const unsigned long& LHS, const unsigned long& RHS) {
@@ -89,7 +89,7 @@ template<> struct DenseMapInfo<unsigned long long> {
static inline unsigned long long getEmptyKey() { return ~0ULL; }
static inline unsigned long long getTombstoneKey() { return ~0ULL - 1ULL; }
static unsigned getHashValue(const unsigned long long& Val) {
- return (unsigned)Val * 37ULL;
+ return (unsigned)(Val * 37ULL);
}
static bool isPod() { return true; }
static bool isEqual(const unsigned long long& LHS,