Add an indication of signedness to the uint64_t constructor so sign bits
authorReid Spencer <rspencer@reidspencer.com>
Mon, 19 Mar 2007 20:36:48 +0000 (20:36 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Mon, 19 Mar 2007 20:36:48 +0000 (20:36 +0000)
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

include/llvm/ADT/APInt.h

index f609f61e1381d5fddf80169015d41bd1a6f8e2cb..aa53790736c852b3b5869ebe19bfedc93d2444da 100644 (file)
@@ -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.