aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-03-19 20:36:48 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-03-19 20:36:48 +0000
commit95da1213958b63c6a5ef65107bf8c3b6a07d3ffb (patch)
tree9059311c1ebfa0bf06084e3d3f988e61fb352bfb
parent4a33714dcd1210ff2f158e07ddf16330812c14ab (diff)
downloadexternal_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.h2
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.