summaryrefslogtreecommitdiff
path: root/include/llvm/ADT/APInt.h
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
commit586504d5ed35d5765652370c4b4e68eb21b2b34a (patch)
tree77dc0d0ec469502fccb1f8fc127e8d376f9f210f /include/llvm/ADT/APInt.h
parent483ec21d90295c146b5555ed66c16860bcfff942 (diff)
downloadllvm-586504d5ed35d5765652370c4b4e68eb21b2b34a.tar.gz
llvm-586504d5ed35d5765652370c4b4e68eb21b2b34a.tar.bz2
llvm-586504d5ed35d5765652370c4b4e68eb21b2b34a.tar.xz
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/llvm/ADT/APInt.h')
-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 fb71907b10..dc5d34f3b1 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;