summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Analysis/IPA/GlobalsModRef.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 18:24:50 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-25 18:24:50 +0000
commitd2b2facb0783864bab79b059e28b9d430e291b2c (patch)
treea4bc8cc634abec2bc9f6a530f3434bf12107ae56 /llvm/lib/Analysis/IPA/GlobalsModRef.cpp
parentf4e1d6fd0690be462b5d7aabc93e7c12cac629b8 (diff)
downloadbcm5719-llvm-d2b2facb0783864bab79b059e28b9d430e291b2c.tar.gz
bcm5719-llvm-d2b2facb0783864bab79b059e28b9d430e291b2c.zip
SCC: Change clients to use const, NFC
It's fishy to be changing the `std::vector<>` owned by the iterator, and no one actual does it, so I'm going to remove the ability in a subsequent commit. First, update the users. <rdar://problem/14292693> llvm-svn: 207252
Diffstat (limited to 'llvm/lib/Analysis/IPA/GlobalsModRef.cpp')
-rw-r--r--llvm/lib/Analysis/IPA/GlobalsModRef.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp
index e460f01fe22..f3f1f90f23a 100644
--- a/llvm/lib/Analysis/IPA/GlobalsModRef.cpp
+++ b/llvm/lib/Analysis/IPA/GlobalsModRef.cpp
@@ -359,7 +359,7 @@ void GlobalsModRef::AnalyzeCallGraph(CallGraph &CG, Module &M) {
// We do a bottom-up SCC traversal of the call graph. In other words, we
// visit all callees before callers (leaf-first).
for (scc_iterator<CallGraph*> I = scc_begin(&CG); !I.isAtEnd(); ++I) {
- std::vector<CallGraphNode *> &SCC = *I;
+ const std::vector<CallGraphNode *> &SCC = *I;
assert(!SCC.empty() && "SCC with no functions?");
if (!SCC[0]->getFunction()) {
OpenPOWER on IntegriCloud