diff options
| author | Chandler Carruth <chandlerc@gmail.com> | 2014-04-23 23:51:07 +0000 |
|---|---|---|
| committer | Chandler Carruth <chandlerc@gmail.com> | 2014-04-23 23:51:07 +0000 |
| commit | 6a4fee87bca1b78bf0693525f0aafc62ee039d5e (patch) | |
| tree | 683f5eafd153e73798b1d1c55b2c72dd2a25adf2 /llvm/lib | |
| parent | a800e2881815c68549e8da3c86438a872b27ad14 (diff) | |
| download | bcm5719-llvm-6a4fee87bca1b78bf0693525f0aafc62ee039d5e.tar.gz bcm5719-llvm-6a4fee87bca1b78bf0693525f0aafc62ee039d5e.zip | |
[LCG] Normalize the post-order SCC iterator to just iterate over the SCC
values rather than having pointers in weird places.
llvm-svn: 207053
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/LazyCallGraph.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Analysis/LazyCallGraph.cpp b/llvm/lib/Analysis/LazyCallGraph.cpp index 2da67227c3e..db6aed3b7a5 100644 --- a/llvm/lib/Analysis/LazyCallGraph.cpp +++ b/llvm/lib/Analysis/LazyCallGraph.cpp @@ -518,8 +518,8 @@ PreservedAnalyses LazyCallGraphPrinterPass::run(Module *M, if (Printed.insert(&N)) printNodes(OS, N, Printed); - for (LazyCallGraph::SCC *SCC : G.postorder_sccs()) - printSCC(OS, *SCC); + for (LazyCallGraph::SCC &SCC : G.postorder_sccs()) + printSCC(OS, SCC); return PreservedAnalyses::all(); |

