From e249d3042160beb2b932e5854d8c3273b1cd13a3 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 13 Aug 2008 20:53:17 +0000 Subject: [PATCH] Add default constructor to APSInt - Creates uninitialized APInt. - Prevents need for embedding arbitrary constants when used as an out parameter, for example. llvm-svn: 54757 --- include/llvm/ADT/APSInt.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 705585c8a0c..edb36bafe4a 100644 --- a/include/llvm/ADT/APSInt.h +++ b/include/llvm/ADT/APSInt.h @@ -23,6 +23,9 @@ namespace llvm { 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)