Fix various issues (or do cleanups) found by enabling certain MSVC warnings.
[oota-llvm.git] / include / llvm / ADT / DenseMapInfo.h
index df4084e6f41127ab0387a19c6065469a3ca6ed36..1559a35c39f902b17ba1331b0810bafae69b4686 100644 (file)
@@ -59,7 +59,7 @@ template<> struct DenseMapInfo<char> {
   
 // Provide DenseMapInfo for unsigned ints.
 template<> struct DenseMapInfo<unsigned> {
-  static inline unsigned getEmptyKey() { return ~0; }
+  static inline unsigned getEmptyKey() { return ~0U; }
   static inline unsigned getTombstoneKey() { return ~0U - 1; }
   static unsigned getHashValue(const unsigned& Val) { return Val * 37U; }
   static bool isEqual(const unsigned& LHS, const unsigned& RHS) {