mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
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
This commit is contained in:
@@ -171,10 +171,10 @@ namespace {
|
||||
// it's thing
|
||||
struct PairKeyInfo {
|
||||
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() {
|
||||
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) {
|
||||
return P.first ^ P.second;
|
||||
@@ -187,10 +187,10 @@ namespace {
|
||||
|
||||
struct ConstraintKeyInfo {
|
||||
static inline Constraint getEmptyKey() {
|
||||
return Constraint(Constraint::Copy, ~0UL, ~0UL, ~0UL);
|
||||
return Constraint(Constraint::Copy, ~0U, ~0U, ~0U);
|
||||
}
|
||||
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) {
|
||||
return C.Src ^ C.Dest ^ C.Type ^ C.Offset;
|
||||
|
Reference in New Issue
Block a user