Fix a clang warning.
authorAnders Carlsson <andersca@mac.com>
Sat, 5 Feb 2011 18:19:35 +0000 (18:19 +0000)
committerAnders Carlsson <andersca@mac.com>
Sat, 5 Feb 2011 18:19:35 +0000 (18:19 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124960 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Support/Triple.cpp

index 4a5166539998dae970de04b57d261f73005bd1ea..d4a7dec8beeb94050a2addc06b40acd063a4106c 100644 (file)
@@ -468,7 +468,8 @@ std::string Triple::normalize(StringRef Str) {
             if (CurrentComponent.empty())
               break;
             // Advance to the next component, skipping any fixed components.
-            while (++i < array_lengthof(Found) && Found[i]);
+            while (++i < array_lengthof(Found) && Found[i])
+              ;
           }
           // The last component was pushed off the end - append it.
           if (!CurrentComponent.empty())