diff options
author | Chandler Carruth <chandlerc@gmail.com> | 2012-02-21 09:29:14 +0000 |
---|---|---|
committer | Chandler Carruth <chandlerc@gmail.com> | 2012-02-21 09:29:14 +0000 |
commit | 362087bcba5a1041ac0982884033d8ac08fcd2e4 (patch) | |
tree | 68c42bf2eb17da63c06ab78bae4b191003cbb0ac /llvm/lib | |
parent | 3f99d381b4bb00cedeef049cfdcf03aa3e1f689c (diff) | |
download | bcm5719-llvm-362087bcba5a1041ac0982884033d8ac08fcd2e4.tar.gz bcm5719-llvm-362087bcba5a1041ac0982884033d8ac08fcd2e4.zip |
Tiny cosmetic change to use the same style for all of the while loops in
the normalize routine, especially the empty while loops.
llvm-svn: 151050
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Support/Triple.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Support/Triple.cpp b/llvm/lib/Support/Triple.cpp index 72f31314517..ae69c607314 100644 --- a/llvm/lib/Support/Triple.cpp +++ b/llvm/lib/Support/Triple.cpp @@ -414,7 +414,8 @@ std::string Triple::normalize(StringRef Str) { // components to the right. for (unsigned i = Pos; !CurrentComponent.empty(); ++i) { // Skip over any fixed components. - while (i < array_lengthof(Found) && Found[i]) ++i; + while (i < array_lengthof(Found) && Found[i]) + ++i; // Place the component at the new position, getting the component // that was at this position - it will be moved right. std::swap(CurrentComponent, Components[i]); @@ -442,7 +443,8 @@ std::string Triple::normalize(StringRef Str) { Components.push_back(CurrentComponent); // Advance Idx to the component's new position. - while (++Idx < array_lengthof(Found) && Found[Idx]) {} + while (++Idx < array_lengthof(Found) && Found[Idx]) + ; } while (Idx < Pos); // Add more until the final position is reached. } assert(Pos < Components.size() && Components[Pos] == Comp && |