llvm.org GIT mirror llvm / acddf9d
Dial down gcc's warnings: don't use 0UL when 0U suffices (and when the variables and methods themselves only use unsigned.) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@48492 91177308-0d34-0410-b5e6-96231b3b80d8 Scott Michel 12 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
6969 BitWord Bits[BITWORDS_PER_ELEMENT];
7070 // Needed for sentinels
7171 SparseBitVectorElement() {
72 ElementIndex = ~0UL;
72 ElementIndex = ~0U;
7373 memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
7474 }
7575
170170 // it's thing
171171 struct PairKeyInfo {
172172 static inline std::pair getEmptyKey() {
173 return std::make_pair(~0UL, ~0UL);
173 return std::make_pair(~0U, ~0U);
174174 }
175175 static inline std::pair getTombstoneKey() {
176 return std::make_pair(~0UL - 1, ~0UL - 1);
176 return std::make_pair(~0U - 1, ~0U - 1);
177177 }
178178 static unsigned getHashValue(const std::pair &P) {
179179 return P.first ^ P.second;
186186
187187 struct ConstraintKeyInfo {
188188 static inline Constraint getEmptyKey() {
189 return Constraint(Constraint::Copy, ~0UL, ~0UL, ~0UL);
189 return Constraint(Constraint::Copy, ~0U, ~0U, ~0U);
190190 }
191191 static inline Constraint getTombstoneKey() {
192 return Constraint(Constraint::Copy, ~0UL - 1, ~0UL - 1, ~0UL - 1);
192 return Constraint(Constraint::Copy, ~0U - 1, ~0U - 1, ~0U - 1);
193193 }
194194 static unsigned getHashValue(const Constraint &C) {
195195 return C.Src ^ C.Dest ^ C.Type ^ C.Offset;