Fixed default ctor for APInt to properly initialize BitWidth to a

non-random value.

llvm-svn: 43795
This commit is contained in:
Ted Kremenek 2007-11-07 00:27:59 +00:00
parent fbe69d2cd6
commit 5fe293d7bc
1 changed files with 1 additions and 1 deletions

View File

@ -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;