Follow up to 90488. Turn a check into an assertion.
[oota-llvm.git] / lib / CodeGen / Spiller.cpp
index 237d0b5f4658a773b07d6727872600e604b6e07e..74662155654e64c450eccc858f814e412d9ace5c 100644 (file)
@@ -140,9 +140,9 @@ protected:
 
       // Insert store if necessary.
       if (hasDef) {
-        tii->storeRegToStackSlot(*mi->getParent(), next(miItr), newVReg, true,
+        tii->storeRegToStackSlot(*mi->getParent(), llvm::next(miItr), newVReg, true,
                                  ss, trc);
-        MachineInstr *storeInstr(next(miItr));
+        MachineInstr *storeInstr(llvm::next(miItr));
         SlotIndex storeIndex =
           lis->InsertMachineInstrInMaps(storeInstr).getDefIndex();
         SlotIndex beginIndex = storeIndex.getPrevIndex();