From b8f106876575074287fd4a42512700c3bbee4162 Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Sun, 2 Apr 2017 06:59:41 +0000 Subject: [APInt] Combine declaration and initialization. NFC llvm-svn: 299325 --- llvm/lib/Support/APInt.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'llvm/lib/Support/APInt.cpp') 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); -- cgit v1.2.3