llvm.org GIT mirror llvm / 4232f4e
Rephrase loop so it doesn't leave unused bools around in Release mode. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212102 91177308-0d34-0410-b5e6-96231b3b80d8 Benjamin Kramer 6 years ago
1 changed file(s) with 2 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
507507
508508 bool Terminated = false;
509509 for (unsigned OI = Offset, OE = Opcodes.size(); !Terminated && OI < OE; ) {
510 bool Decoded = false;
511 for (unsigned DI = 0, DE = array_lengthof(Ring); DI < DE; ++DI) {
510 for (unsigned DI = 0;; ++DI) {
512511 if ((Opcodes[OI] & Ring[DI].Mask) == Ring[DI].Value) {
513512 Terminated = (this->*Ring[DI].Routine)(Opcodes.data(), OI, 0, Prologue);
514 Decoded = true;
515513 break;
516514 }
515 assert(DI < array_lengthof(Ring) && "unhandled opcode");
517516 }
518 assert(Decoded && "unhandled opcode");
519517 }
520518 }
521519