projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f6832a
)
Fix a clang warning.
author
Anders Carlsson
<andersca@mac.com>
Sat, 5 Feb 2011 18:19:35 +0000
(18:19 +0000)
committer
Anders 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
patch
|
blob
|
history
diff --git
a/lib/Support/Triple.cpp
b/lib/Support/Triple.cpp
index 4a5166539998dae970de04b57d261f73005bd1ea..d4a7dec8beeb94050a2addc06b40acd063a4106c 100644
(file)
--- 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())