From: Reid Spencer Date: Mon, 19 Mar 2007 20:36:48 +0000 (+0000) Subject: Add an indication of signedness to the uint64_t constructor so sign bits X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=95da1213958b63c6a5ef65107bf8c3b6a07d3ffb;p=oota-llvm.git 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 --- diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index f609f61e138..aa53790736c 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.