AMDGPU: Remove implicit ilist iterator conversions, NFC
[oota-llvm.git] / lib / Target / AMDGPU / AMDGPUMCInstLower.cpp
index 15e42abb0b72e6c91a442d60db94c4d18a32296e..2e0283f040dd5b5b08f83dfbaa7fd333e40567c2 100644 (file)
@@ -104,10 +104,9 @@ void AMDGPUAsmPrinter::EmitInstruction(const MachineInstr *MI) {
 #endif
   if (MI->isBundle()) {
     const MachineBasicBlock *MBB = MI->getParent();
-    MachineBasicBlock::const_instr_iterator I = MI;
-    ++I;
-    while (I != MBB->end() && I->isInsideBundle()) {
-      EmitInstruction(I);
+    MachineBasicBlock::const_instr_iterator I = ++MI->getIterator();
+    while (I != MBB->instr_end() && I->isInsideBundle()) {
+      EmitInstruction(&*I);
       ++I;
     }
   } else {