diff options
author | Scott Michel <scottm@aero.org> | 2008-03-18 16:55:06 +0000 |
---|---|---|
committer | Scott Michel <scottm@aero.org> | 2008-03-18 16:55:06 +0000 |
commit | 67973e4b0f0a3d13aba58ba71ad3ddf8dcfc9cf1 (patch) | |
tree | 8e88cd7f0d3a77b62b5fab06e78ab9c02ce4c20d /lib/Analysis | |
parent | c1ca3cc7cbbf824cc877d65d211e4a0199447821 (diff) | |
download | external_llvm-67973e4b0f0a3d13aba58ba71ad3ddf8dcfc9cf1.zip external_llvm-67973e4b0f0a3d13aba58ba71ad3ddf8dcfc9cf1.tar.gz external_llvm-67973e4b0f0a3d13aba58ba71ad3ddf8dcfc9cf1.tar.bz2 |
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
Diffstat (limited to 'lib/Analysis')
-rw-r--r-- | lib/Analysis/IPA/Andersens.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Analysis/IPA/Andersens.cpp b/lib/Analysis/IPA/Andersens.cpp index 8650fb1..a66a6fa 100644 --- a/lib/Analysis/IPA/Andersens.cpp +++ b/lib/Analysis/IPA/Andersens.cpp @@ -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; |