aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2007-09-21 22:09:37 +0000
committerDale Johannesen <dalej@apple.com>2007-09-21 22:09:37 +0000
commita6f7974e97825e9575b5c5cf9f6665aef86cbe03 (patch)
tree3dbc8815c0b1b48e3bdaf73a2b46004c3827bbcf /include/llvm/ADT
parent058c67a070dea39e3c0282664f0e82b1346ae845 (diff)
downloadexternal_llvm-a6f7974e97825e9575b5c5cf9f6665aef86cbe03.zip
external_llvm-a6f7974e97825e9575b5c5cf9f6665aef86cbe03.tar.gz
external_llvm-a6f7974e97825e9575b5c5cf9f6665aef86cbe03.tar.bz2
Change APFloat::convertFromInteger to take the incoming
bit width instead of number of words allocated, which makes it actually work for int->APF conversions. Adjust callers. Add const to one of the APInt constructors to prevent surprising match when called with const argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42210 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-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 97fe4e9..01b49d08 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -172,7 +172,7 @@ public:
/// @param numWords the number of words in bigVal
/// @param bigVal a sequence of words to form the initial value of the APInt
/// @brief Construct an APInt of numBits width, initialized as bigVal[].
- APInt(uint32_t numBits, uint32_t numWords, uint64_t bigVal[]);
+ APInt(uint32_t numBits, uint32_t numWords, const uint64_t bigVal[]);
/// This constructor interprets Val as a string in the given radix. The
/// interpretation stops when the first charater that is not suitable for the