Revert part of r91101 which was causing an infinite loop in the self-hosting
[oota-llvm.git] / lib / CodeGen / MachineFunction.cpp
index d20f4464e502db221050a493a2e356a89c8ef8ef..dd6fd7ea594f85ecb50f2f2f87161623b29adcbe 100644 (file)
@@ -328,7 +328,7 @@ void MachineFunction::print(raw_ostream &OS) const {
       if (I->second)
         OS << " in reg%" << I->second;
 
-      if (next(I) != E)
+      if (llvm::next(I) != E)
         OS << ", ";
     }
     OS << '\n';
@@ -342,7 +342,7 @@ void MachineFunction::print(raw_ostream &OS) const {
       else
         OS << "%physreg" << *I;
 
-      if (next(I) != E)
+      if (llvm::next(I) != E)
         OS << " ";
     }
     OS << '\n';