From: Anders Carlsson Date: Sat, 5 Feb 2011 18:19:35 +0000 (+0000) Subject: Fix a clang warning. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=15ec695e8ab1497b55a0bf212de663a63c6d8e32;p=oota-llvm.git Fix a clang warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124960 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Support/Triple.cpp b/lib/Support/Triple.cpp index 4a516653999..d4a7dec8bee 100644 --- a/lib/Support/Triple.cpp +++ b/lib/Support/Triple.cpp @@ -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())