[APInt] Combine declaration and initialization. NFC

llvm-svn: 299325
This commit is contained in:
Craig Topper 2017-04-02 06:59:41 +00:00
parent b7d8faa231
commit b8f1068765
1 changed files with 2 additions and 6 deletions

View File

@ -2489,9 +2489,7 @@ integerPart APInt::tcAdd(integerPart *dst, const integerPart *rhs,
assert(c <= 1);
for (unsigned i = 0; i < parts; i++) {
integerPart l;
l = dst[i];
integerPart l = dst[i];
if (c) {
dst[i] += rhs[i] + 1;
c = (dst[i] <= l);
@ -2511,9 +2509,7 @@ integerPart APInt::tcSubtract(integerPart *dst, const integerPart *rhs,
assert(c <= 1);
for (unsigned i = 0; i < parts; i++) {
integerPart l;
l = dst[i];
integerPart l = dst[i];
if (c) {
dst[i] -= rhs[i] + 1;
c = (dst[i] >= l);