summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h b/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
index aae1f1d4e09..d8dfc7f1af2 100644
--- a/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
+++ b/llvm/include/llvm/TextAPI/MachO/ArchitectureSet.h
@@ -69,11 +69,10 @@ public:
void findNextSetBit() {
if (Index == EndIndexVal)
return;
-
- do {
- if (*ArchSet & (1UL << ++Index))
+ while (++Index < sizeof(Ty) * 8) {
+ if (*ArchSet & (1UL << Index))
return;
- } while (Index < sizeof(Ty) * 8);
+ }
Index = EndIndexVal;
}
OpenPOWER on IntegriCloud