diff options
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r-- | llvm/lib/Support/APInt.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp index 22a393c6f31..f0b6d8f0589 100644 --- a/llvm/lib/Support/APInt.cpp +++ b/llvm/lib/Support/APInt.cpp @@ -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); |