- for (MachineBasicBlock::livein_iterator I = MBB->livein_begin(),
- E = MBB->livein_end(); I != E; ++I)
- if (MRI->isAllocatable(*I))
- definePhysReg(MII, *I, regReserved);
+ for (unsigned LI : MBB->liveins())
+ if (MRI->isAllocatable(LI))
+ definePhysReg(MII, LI, regReserved);