Drop 'const'
llvm-svn: 36662
diff --git a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
index a91dbc2..5a6b466 100644
--- a/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
@@ -63,7 +63,7 @@
}
virtual bool runOnSCC(const std::vector<CallGraphNode *> &SCC);
- static const char ID; // Pass identifcation, replacement for typeid
+ static char ID; // Pass identifcation, replacement for typeid
ArgPromotion() : CallGraphSCCPass((intptr_t)&ID) {}
private:
@@ -72,7 +72,7 @@
Function *DoPromotion(Function *F, std::vector<Argument*> &ArgsToPromote);
};
- const char ArgPromotion::ID = 0;
+ char ArgPromotion::ID = 0;
RegisterPass<ArgPromotion> X("argpromotion",
"Promote 'by reference' arguments to scalars");
}