From 1665d8635ece94cb98a3806e7c1d10c3c9084097 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Sat, 6 Aug 2016 06:21:02 +0000 Subject: [CallGraphSCCPass] Use an ArrayRef instead of a pair of iterators No functional change is intended. llvm-svn: 277913 --- llvm/lib/Analysis/CallGraphSCCPass.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Analysis/CallGraphSCCPass.cpp') diff --git a/llvm/lib/Analysis/CallGraphSCCPass.cpp b/llvm/lib/Analysis/CallGraphSCCPass.cpp index 69d76735478..b1e81a407a3 100644 --- a/llvm/lib/Analysis/CallGraphSCCPass.cpp +++ b/llvm/lib/Analysis/CallGraphSCCPass.cpp @@ -450,7 +450,7 @@ bool CGPassManager::runOnModule(Module &M) { // Copy the current SCC and increment past it so that the pass can hack // on the SCC if it wants to without invalidating our iterator. const std::vector &NodeVec = *CGI; - CurSCC.initialize(NodeVec.data(), NodeVec.data() + NodeVec.size()); + CurSCC.initialize(NodeVec); ++CGI; // At the top level, we run all the passes in this pass manager on the -- cgit v1.2.3