aboutsummaryrefslogtreecommitdiff
path: root/llvm/include/llvm/ADT/APInt.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/include/llvm/ADT/APInt.h')
-rw-r--r--llvm/include/llvm/ADT/APInt.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h
index 4155cb260a2a..5bdc1541f630 100644
--- a/llvm/include/llvm/ADT/APInt.h
+++ b/llvm/include/llvm/ADT/APInt.h
@@ -147,7 +147,7 @@ public:
APInt(unsigned numBits, StringRef str, uint8_t radix);
/// Default constructor that creates an APInt with a 1-bit zero value.
- explicit APInt() : BitWidth(1) { U.VAL = 0; }
+ explicit APInt() { U.VAL = 0; }
/// Copy Constructor.
APInt(const APInt &that) : BitWidth(that.BitWidth) {
@@ -1824,7 +1824,7 @@ private:
uint64_t *pVal; ///< Used to store the >64 bits integer value.
} U;
- unsigned BitWidth; ///< The number of bits in this APInt.
+ unsigned BitWidth = 1; ///< The number of bits in this APInt.
friend struct DenseMapInfo<APInt, void>;
friend class APSInt;