Index: llvm/tools/opt/PrintSCC.cpp =================================================================== --- llvm/tools/opt/PrintSCC.cpp +++ llvm/tools/opt/PrintSCC.cpp @@ -76,9 +76,10 @@ for (scc_iterator SCCI = scc_begin(&F); !SCCI.isAtEnd(); ++SCCI) { const std::vector &nextSCC = *SCCI; errs() << "\nSCC #" << ++sccNum << " : "; - for (std::vector::const_iterator I = nextSCC.begin(), - E = nextSCC.end(); I != E; ++I) - errs() << (*I)->getName() << ", "; + for (BasicBlock *BB : nextSCC) { + BB->printAsOperand(errs(), false); + errs() << ", "; + } if (nextSCC.size() == 1 && SCCI.hasCycle()) errs() << " (Has self-loop)."; }