From e89c5e57cc5c525d7875032a125e37bd404448c2 Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 28 Jun 2010 21:29:17 +0000 Subject: [PATCH] tidy up style. no functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107073 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/Thumb2HazardRecognizer.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; } }