From 7fe7e468cfb9f25bf483199d3242a19780e53e89 Mon Sep 17 00:00:00 2001 From: Pawel Bylica Date: Mon, 27 Jun 2016 08:31:48 +0000 Subject: [PATCH] APInt: remove unsued param in private method. NFC Reviewers: davide Subscribers: davide, llvm-commits Differential Revision: http://reviews.llvm.org/D21638 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273851 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/ADT/APInt.h | 4 ++-- lib/Support/APInt.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h index bde05ff973e..d77d1c7ca93 100644 --- a/include/llvm/ADT/APInt.h +++ b/include/llvm/ADT/APInt.h @@ -181,7 +181,7 @@ class APInt { unsigned rhsWords, APInt *Quotient, APInt *Remainder); /// out-of-line slow case for inline constructor - void initSlowCase(unsigned numBits, uint64_t val, bool isSigned); + void initSlowCase(uint64_t val, bool isSigned); /// shared code between two array constructors void initFromArray(ArrayRef array); @@ -239,7 +239,7 @@ public: if (isSingleWord()) VAL = val; else - initSlowCase(numBits, val, isSigned); + initSlowCase(val, isSigned); clearUnusedBits(); } diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 9eed2147746..66eee99c6ec 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -75,7 +75,7 @@ inline static unsigned getDigit(char cdigit, uint8_t radix) { } -void APInt::initSlowCase(unsigned numBits, uint64_t val, bool isSigned) { +void APInt::initSlowCase(uint64_t val, bool isSigned) { pVal = getClearedMemory(getNumWords()); pVal[0] = val; if (isSigned && int64_t(val) < 0)