From 15ec695e8ab1497b55a0bf212de663a63c6d8e32 Mon Sep 17 00:00:00 2001 From: Anders Carlsson Date: Sat, 5 Feb 2011 18:19:35 +0000 Subject: [PATCH] Fix a clang warning. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124960 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Support/Triple.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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()) -- 2.34.1