From 5fe293d7bcfa815089fbf2defbd0453e85628863 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 7 Nov 2007 00:27:59 +0000 Subject: [PATCH] Fixed default ctor for APInt to properly initialize BitWidth to a non-random value. llvm-svn: 43795 --- llvm/include/llvm/ADT/APInt.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/ADT/APInt.h b/llvm/include/llvm/ADT/APInt.h index fb71907b105e..dc5d34f3b1f3 100644 --- a/llvm/include/llvm/ADT/APInt.h +++ b/llvm/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;