diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-02 06:59:41 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-02 06:59:41 +0000 |
commit | b8f106876575074287fd4a42512700c3bbee4162 (patch) | |
tree | 9c4064cc43ae4ed56c0658bf08c0e4f176eb0f33 /llvm/lib/Support/APInt.cpp | |
parent | b7d8faa2314a486af49df30c8c5e034ff0578fd6 (diff) | |
download | bcm5719-llvm-b8f106876575074287fd4a42512700c3bbee4162.tar.gz bcm5719-llvm-b8f106876575074287fd4a42512700c3bbee4162.zip |
[APInt] Combine declaration and initialization. NFC
llvm-svn: 299325
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); |