aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJim Grosbach <grosbach@apple.com>2010-06-28 21:29:17 +0000
committerJim Grosbach <grosbach@apple.com>2010-06-28 21:29:17 +0000
commite89c5e57cc5c525d7875032a125e37bd404448c2 (patch)
tree1e5adaaab01a896ce6a3efec0aa40a33838b8b4b /lib
parent50f424c3d079d4774bb323de1e0b77cf4627be69 (diff)
downloadexternal_llvm-e89c5e57cc5c525d7875032a125e37bd404448c2.zip
external_llvm-e89c5e57cc5c525d7875032a125e37bd404448c2.tar.gz
external_llvm-e89c5e57cc5c525d7875032a125e37bd404448c2.tar.bz2
tidy up style. no functional change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107073 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/ARM/Thumb2HazardRecognizer.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Target/ARM/Thumb2HazardRecognizer.cpp b/lib/Target/ARM/Thumb2HazardRecognizer.cpp
index 3fe31a2..172908d 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;
}
}