summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/CallGraphSCCPass.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-08-06 06:21:02 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-08-06 06:21:02 +0000
commit1665d8635ece94cb98a3806e7c1d10c3c9084097 (patch)
tree6faa70df2cce578974551412a9015c4baf840e3d /llvm/lib/Analysis/CallGraphSCCPass.cpp
parent9dd96d73f733a30ec6e3d5aeb7364e2b8f581f32 (diff)
downloadbcm5719-llvm-1665d8635ece94cb98a3806e7c1d10c3c9084097.tar.gz
bcm5719-llvm-1665d8635ece94cb98a3806e7c1d10c3c9084097.zip
[CallGraphSCCPass] Use an ArrayRef instead of a pair of iterators
No functional change is intended. llvm-svn: 277913
Diffstat (limited to 'llvm/lib/Analysis/CallGraphSCCPass.cpp')
-rw-r--r--llvm/lib/Analysis/CallGraphSCCPass.cpp2
1 files changed, 1 insertions, 1 deletions
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<CallGraphNode *> &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
OpenPOWER on IntegriCloud