aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-02-17 00:18:01 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-02-17 00:18:01 +0000
commitcd6f2bfc268add3dd54cbdf98b2a2c4862fe4ba5 (patch)
tree4654e2e834d76567b7f20cc28e1df1d05c986984 /include
parent3ebb2e00345df0065a7f5c624427e107139444ca (diff)
downloadexternal_llvm-cd6f2bfc268add3dd54cbdf98b2a2c4862fe4ba5.zip
external_llvm-cd6f2bfc268add3dd54cbdf98b2a2c4862fe4ba5.tar.gz
external_llvm-cd6f2bfc268add3dd54cbdf98b2a2c4862fe4ba5.tar.bz2
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
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/APInt.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 7933057..9d728d3 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -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;
}