From 7fb842420a87d984196454b3e43fc54267f79edc 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54757 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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) -- 2.34.1