AMDGPU: VOP3b definition cleanups
[oota-llvm.git] / lib / Target / Mips / MipsDelaySlotFiller.cpp
index c81555116d73535a4b6d4202859daa98b515553e..1b61253ddfb48ee4e65e425b3ca199efa3b2ddd8 100644 (file)
@@ -355,8 +355,8 @@ void RegDefsUses::addLiveOut(const MachineBasicBlock &MBB,
   for (MachineBasicBlock::const_succ_iterator SI = MBB.succ_begin(),
        SE = MBB.succ_end(); SI != SE; ++SI)
     if (*SI != &SuccBB)
-      for (unsigned LI : (*SI)->liveins())
-        Uses.set(LI);
+      for (const auto &LI : (*SI)->liveins())
+        Uses.set(LI.PhysReg);
 }
 
 bool RegDefsUses::update(const MachineInstr &MI, unsigned Begin, unsigned End) {