[llvm-commits] [llvm] r43795 - /llvm/trunk/include/llvm/ADT/APInt.h
Ted Kremenek
kremenek at apple.com
Tue Nov 6 16:28:00 PST 2007
Author: kremenek
Date: Tue Nov 6 18:27:59 2007
New Revision: 43795
URL: http://llvm.org/viewvc/llvm-project?rev=43795&view=rev
Log:
Fixed default ctor for APInt to properly initialize BitWidth to a
non-random value.
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=43795&r1=43794&r2=43795&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Tue Nov 6 18:27:59 2007
@@ -207,7 +207,7 @@
/// 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;
More information about the llvm-commits
mailing list