aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2007-11-07 00:27:59 +0000
committerTed Kremenek <kremenek@apple.com>2007-11-07 00:27:59 +0000
commit463850d7d8ca4211236550bd0b1aa429e6c75a78 (patch)
tree77dc0d0ec469502fccb1f8fc127e8d376f9f210f /include
parent5c78847ff68e718d27231b5dfb944d44e6bca666 (diff)
downloadexternal_llvm-463850d7d8ca4211236550bd0b1aa429e6c75a78.zip
external_llvm-463850d7d8ca4211236550bd0b1aa429e6c75a78.tar.gz
external_llvm-463850d7d8ca4211236550bd0b1aa429e6c75a78.tar.bz2
Fixed default ctor for APInt to properly initialize BitWidth to a
non-random value. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@43795 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/ADT/APInt.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index fb71907..dc5d34f 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -207,7 +207,7 @@ public:
/// Default constructor that creates an uninitialized APInt. This is useful
/// for object deserialization (pair this with the static method Read).
- explicit APInt() {}
+ explicit APInt() : BitWidth(1) {}
/// @brief Used by the Bitcode serializer to emit APInts to Bitcode.
void Emit(Serializer& S) const;