Fix some nasty callgraph dangling pointer problems in
[oota-llvm.git] / tools / opt / opt.cpp
index 6effa480001080ef942dfd193998aba7be8863b5..d8bfd61c232779641e69bb3f37ad675ca8af22b6 100644 (file)
@@ -132,7 +132,7 @@ struct CallGraphSCCPassPrinter : public CallGraphSCCPass {
   CallGraphSCCPassPrinter(const PassInfo *PI) :
     CallGraphSCCPass(&ID), PassToPrint(PI) {}
 
-  virtual bool runOnSCC(const std::vector<CallGraphNode *>&SCC) {
+  virtual bool runOnSCC(std::vector<CallGraphNode *>&SCC) {
     if (!Quiet) {
       outs() << "Printing analysis '" << PassToPrint->getPassName() << "':\n";