From: Jim Grosbach Date: Mon, 28 Jun 2010 21:29:17 +0000 (+0000) Subject: tidy up style. no functional change. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e89c5e57cc5c525d7875032a125e37bd404448c2;p=oota-llvm.git tidy up style. no functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107073 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/ARM/Thumb2HazardRecognizer.cpp b/lib/Target/ARM/Thumb2HazardRecognizer.cpp index 3fe31a2b485..172908da228 100644 --- a/lib/Target/ARM/Thumb2HazardRecognizer.cpp +++ b/lib/Target/ARM/Thumb2HazardRecognizer.cpp @@ -41,9 +41,10 @@ void Thumb2HazardRecognizer::EmitInstruction(SUnit *SU) { ITBlockSize = 4 - NumTZ; MachineBasicBlock::iterator I = MI; for (unsigned i = 0; i < ITBlockSize; ++i) { - ++I; - while (I->isDebugValue()) + // Advance to the next instruction, skipping any dbg_value instructions. + do { ++I; + } while (I->isDebugValue()); ITBlockMIs[ITBlockSize-1-i] = &*I; } }