Index: llvm/trunk/include/llvm/TextAPI/MachO/ArchitectureSet.h =================================================================== --- llvm/trunk/include/llvm/TextAPI/MachO/ArchitectureSet.h +++ llvm/trunk/include/llvm/TextAPI/MachO/ArchitectureSet.h @@ -69,11 +69,10 @@ 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; }