diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-13 20:53:17 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-13 20:53:17 +0000 |
commit | 7fb842420a87d984196454b3e43fc54267f79edc (patch) | |
tree | 9ff2f8840e290d462b79a41882d484539e084fad /include/llvm/ADT/APSInt.h | |
parent | 8bd79a8cae68378dd1c41140cf6067b1af3c4f01 (diff) | |
download | llvm-7fb842420a87d984196454b3e43fc54267f79edc.tar.gz llvm-7fb842420a87d984196454b3e43fc54267f79edc.tar.bz2 llvm-7fb842420a87d984196454b3e43fc54267f79edc.tar.xz |
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
Diffstat (limited to 'include/llvm/ADT/APSInt.h')
-rw-r--r-- | include/llvm/ADT/APSInt.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/ADT/APSInt.h b/include/llvm/ADT/APSInt.h index 705585c8a0..edb36bafe4 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) |