[llvm-commits] [llvm] r48492 - in /llvm/trunk: include/llvm/ADT/SparseBitVector.h lib/Analysis/IPA/Andersens.cpp
Scott Michel
scottm at aero.org
Tue Mar 18 09:55:06 PDT 2008
Author: pingbak
Date: Tue Mar 18 11:55:06 2008
New Revision: 48492
URL: http://llvm.org/viewvc/llvm-project?rev=48492&view=rev
Log:
Dial down gcc's warnings: don't use 0UL when 0U suffices (and when the
variables and methods themselves only use unsigned.)
Modified:
llvm/trunk/include/llvm/ADT/SparseBitVector.h
llvm/trunk/lib/Analysis/IPA/Andersens.cpp
Modified: llvm/trunk/include/llvm/ADT/SparseBitVector.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SparseBitVector.h?rev=48492&r1=48491&r2=48492&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SparseBitVector.h (original)
+++ llvm/trunk/include/llvm/ADT/SparseBitVector.h Tue Mar 18 11:55:06 2008
@@ -70,7 +70,7 @@
BitWord Bits[BITWORDS_PER_ELEMENT];
// Needed for sentinels
SparseBitVectorElement() {
- ElementIndex = ~0UL;
+ ElementIndex = ~0U;
memset(&Bits[0], 0, sizeof (BitWord) * BITWORDS_PER_ELEMENT);
}
Modified: llvm/trunk/lib/Analysis/IPA/Andersens.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/IPA/Andersens.cpp?rev=48492&r1=48491&r2=48492&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/IPA/Andersens.cpp (original)
+++ llvm/trunk/lib/Analysis/IPA/Andersens.cpp Tue Mar 18 11:55:06 2008
@@ -171,10 +171,10 @@
// 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 @@
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;
More information about the llvm-commits
mailing list