Revert 110491. While not wrong, it was based on a
[oota-llvm.git] / lib / VMCore / AsmWriter.cpp
index 682bac38fecc0c3384b9474de4bee48b32c3b2a8..c925a7e3391e9ad7e9ea6d6f40129804df3a5c8d 100644 (file)
@@ -228,7 +228,7 @@ void TypePrinting::CalcTypeName(const Type *Ty,
          E = STy->element_end(); I != E; ++I) {
       OS << ' ';
       CalcTypeName(*I, TypeStack, OS);
-      if (next(I) == STy->element_end())
+      if (llvm::next(I) == STy->element_end())
         OS << ' ';
       else
         OS << ',';
@@ -245,7 +245,7 @@ void TypePrinting::CalcTypeName(const Type *Ty,
          E = UTy->element_end(); I != E; ++I) {
       OS << ' ';
       CalcTypeName(*I, TypeStack, OS);
-      if (next(I) == UTy->element_end())
+      if (llvm::next(I) == UTy->element_end())
         OS << ' ';
       else
         OS << ',';