SCC: Change clients to use const, NFC
[oota-llvm.git] / lib / Analysis / IPA / GlobalsModRef.cpp
index e460f01fe22771fced55b494abe64c3a17ec53a5..f3f1f90f23aa36f50b96d72b825cf089174468af 100644 (file)
@@ -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()) {