summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/Andersens.cpp
diff options
context:
space:
mode:
authorScott Michel <scottm@aero.org>2008-03-18 16:55:06 +0000
committerScott Michel <scottm@aero.org>2008-03-18 16:55:06 +0000
commit08ef1b2bdb0d9d1a5ca6cceba551f31d9dd23e3c (patch)
tree0c3a7c29b6317efaca301dd11bd85db224e034e0 /llvm/lib/Analysis/IPA/Andersens.cpp
parent3e408d4d823ed3e6d4322bdd6e16ebc1f83028ea (diff)
downloadbcm5719-llvm-08ef1b2bdb0d9d1a5ca6cceba551f31d9dd23e3c.tar.gz
bcm5719-llvm-08ef1b2bdb0d9d1a5ca6cceba551f31d9dd23e3c.zip
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
Diffstat (limited to 'llvm/lib/Analysis/IPA/Andersens.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/Andersens.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Analysis/IPA/Andersens.cpp b/llvm/lib/Analysis/IPA/Andersens.cpp
index 8650fb1334c..a66a6faf1c5 100644
--- a/llvm/lib/Analysis/IPA/Andersens.cpp
+++ b/llvm/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;
OpenPOWER on IntegriCloud