diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp index 4275e3918c6..babfbdc21a6 100644 --- a/lib/Support/APInt.cpp +++ b/lib/Support/APInt.cpp @@ -2816,15 +2816,15 @@ void APInt::tcComplement(integerPart *dst, unsigned parts) { int APInt::tcCompare(const integerPart *lhs, const integerPart *rhs, unsigned parts) { while (parts) { - parts--; - if (lhs[parts] == rhs[parts]) - continue; + parts--; + if (lhs[parts] == rhs[parts]) + continue; - if (lhs[parts] > rhs[parts]) - return 1; - else - return -1; - } + if (lhs[parts] > rhs[parts]) + return 1; + else + return -1; + } return 0; }