[llvm-commits] [llvm] r151050 - /llvm/trunk/lib/Support/Triple.cpp
Chandler Carruth
chandlerc at gmail.com
Tue Feb 21 01:29:14 PST 2012
Author: chandlerc
Date: Tue Feb 21 03:29:14 2012
New Revision: 151050
URL: http://llvm.org/viewvc/llvm-project?rev=151050&view=rev
Log:
Tiny cosmetic change to use the same style for all of the while loops in
the normalize routine, especially the empty while loops.
Modified:
llvm/trunk/lib/Support/Triple.cpp
Modified: llvm/trunk/lib/Support/Triple.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Support/Triple.cpp?rev=151050&r1=151049&r2=151050&view=diff
==============================================================================
--- llvm/trunk/lib/Support/Triple.cpp (original)
+++ llvm/trunk/lib/Support/Triple.cpp Tue Feb 21 03:29:14 2012
@@ -414,7 +414,8 @@
// 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 @@
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 &&
More information about the llvm-commits
mailing list