diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-19 20:36:48 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-19 20:36:48 +0000 |
commit | 95da1213958b63c6a5ef65107bf8c3b6a07d3ffb (patch) | |
tree | 9059311c1ebfa0bf06084e3d3f988e61fb352bfb | |
parent | 4a33714dcd1210ff2f158e07ddf16330812c14ab (diff) | |
download | external_llvm-95da1213958b63c6a5ef65107bf8c3b6a07d3ffb.zip external_llvm-95da1213958b63c6a5ef65107bf8c3b6a07d3ffb.tar.gz external_llvm-95da1213958b63c6a5ef65107bf8c3b6a07d3ffb.tar.bz2 |
Add an indication of signedness to the uint64_t constructor so sign bits
can be extended. This helps fix test/Assembler/2007-03-19-NegValue.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35179 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/ADT/APInt.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index f609f61..aa53790 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -151,7 +151,7 @@ class APInt { public: /// @brief Create a new APInt of numBits width, initialized as val. - APInt(uint32_t numBits, uint64_t val); + APInt(uint32_t numBits, uint64_t val, bool isSigned = false); /// Note that numWords can be smaller or larger than the corresponding bit /// width but any extraneous bits will be dropped. |