[llvm-commits] [llvm] r54757 - /llvm/trunk/include/llvm/ADT/APSInt.h
Daniel Dunbar
daniel at zuster.org
Wed Aug 13 13:53:24 PDT 2008
Author: ddunbar
Date: Wed Aug 13 15:53:17 2008
New Revision: 54757
URL: http://llvm.org/viewvc/llvm-project?rev=54757&view=rev
Log:
Add default constructor to APSInt
- Creates uninitialized APInt.
- Prevents need for embedding arbitrary constants when used as an out
parameter, for example.
Modified:
llvm/trunk/include/llvm/ADT/APSInt.h
Modified: llvm/trunk/include/llvm/ADT/APSInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APSInt.h?rev=54757&r1=54756&r2=54757&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APSInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APSInt.h Wed Aug 13 15:53:17 2008
@@ -23,6 +23,9 @@
class APSInt : public APInt {
bool IsUnsigned;
public:
+ /// Default constructor that creates an uninitialized APInt.
+ explicit APSInt() {}
+
/// APSInt ctor - Create an APSInt with the specified width, default to
/// unsigned.
explicit APSInt(uint32_t BitWidth, bool isUnsigned = true)
More information about the llvm-commits
mailing list