Fix bugs introduced by constructor parameter order change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34357 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Reid Spencer
2007-02-17 00:18:01 +00:00
parent 3ebb2e0034
commit cd6f2bfc26
2 changed files with 32 additions and 16 deletions

View File

@@ -254,7 +254,7 @@ public:
/// @brief Unary negation operator
inline APInt operator-() const {
return APInt(0, BitWidth) - (*this);
return APInt(BitWidth, 0) - (*this);
}
/// @brief Array-indexing support.
@@ -469,7 +469,7 @@ public:
APInt getLoBits(unsigned numBits) const;
/// @returns true if the argument APInt value is a power of two > 0.
inline bool isPowerOf2() const;
bool isPowerOf2() const;
/// @returns the number of zeros from the most significant bit to the first
/// one bits.
@@ -483,7 +483,7 @@ public:
unsigned countPopulation() const;
/// @returns the total number of bits.
inline unsigned getNumBits() const {
inline unsigned getBitWidth() const {
return BitWidth;
}