Dial down gcc's warnings: don't use 0UL when 0U suffices (and when the
variables and methods themselves only use unsigned.) llvm-svn: 48492
This commit is contained in:
parent
3e408d4d82
commit
08ef1b2bdb
|
|
@ -70,7 +70,7 @@ private:
|
||||||
BitWord Bits[BITWORDS_PER_ELEMENT];
|
BitWord Bits[BITWORDS_PER_ELEMENT];
|
||||||
// Needed for sentinels
|
// Needed for sentinels
|
||||||
SparseBitVectorElement() {
|
SparseBitVectorElement() {
|
||||||
ElementIndex = ~0UL;
|
ElementIndex = ~0U;
|
||||||
memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
|
memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -171,10 +171,10 @@ namespace {
|
||||||
// it's thing
|
// it's thing
|
||||||
struct PairKeyInfo {
|
struct PairKeyInfo {
|
||||||
static inline std::pair<unsigned, unsigned> getEmptyKey() {
|
static inline std::pair<unsigned, unsigned> getEmptyKey() {
|
||||||
return std::make_pair(~0UL, ~0UL);
|
return std::make_pair(~0U, ~0U);
|
||||||
}
|
}
|
||||||
static inline std::pair<unsigned, unsigned> getTombstoneKey() {
|
static inline std::pair<unsigned, unsigned> getTombstoneKey() {
|
||||||
return std::make_pair(~0UL - 1, ~0UL - 1);
|
return std::make_pair(~0U - 1, ~0U - 1);
|
||||||
}
|
}
|
||||||
static unsigned getHashValue(const std::pair<unsigned, unsigned> &P) {
|
static unsigned getHashValue(const std::pair<unsigned, unsigned> &P) {
|
||||||
return P.first ^ P.second;
|
return P.first ^ P.second;
|
||||||
|
|
@ -187,10 +187,10 @@ namespace {
|
||||||
|
|
||||||
struct ConstraintKeyInfo {
|
struct ConstraintKeyInfo {
|
||||||
static inline Constraint getEmptyKey() {
|
static inline Constraint getEmptyKey() {
|
||||||
return Constraint(Constraint::Copy, ~0UL, ~0UL, ~0UL);
|
return Constraint(Constraint::Copy, ~0U, ~0U, ~0U);
|
||||||
}
|
}
|
||||||
static inline Constraint getTombstoneKey() {
|
static inline Constraint getTombstoneKey() {
|
||||||
return Constraint(Constraint::Copy, ~0UL - 1, ~0UL - 1, ~0UL - 1);
|
return Constraint(Constraint::Copy, ~0U - 1, ~0U - 1, ~0U - 1);
|
||||||
}
|
}
|
||||||
static unsigned getHashValue(const Constraint &C) {
|
static unsigned getHashValue(const Constraint &C) {
|
||||||
return C.Src ^ C.Dest ^ C.Type ^ C.Offset;
|
return C.Src ^ C.Dest ^ C.Type ^ C.Offset;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue