[llvm] r299318 - [APInt] Fix indentation. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 1 14:50:06 PDT 2017


Author: ctopper
Date: Sat Apr  1 16:50:06 2017
New Revision: 299318

URL: http://llvm.org/viewvc/llvm-project?rev=299318&view=rev
Log:
[APInt] Fix indentation. NFC

Modified:
    llvm/trunk/lib/Support/APInt.cpp

Modified: llvm/trunk/lib/Support/APInt.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/APInt.cpp?rev=299318&r1=299317&r2=299318&view=diff
==============================================================================
--- llvm/trunk/lib/Support/APInt.cpp (original)
+++ llvm/trunk/lib/Support/APInt.cpp Sat Apr  1 16:50:06 2017
@@ -2816,15 +2816,15 @@ void APInt::tcComplement(integerPart *ds
 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;
 }




More information about the llvm-commits mailing list