De-constify Types in FunctionType::get().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134888 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jay Foad
2011-07-11 07:56:41 +00:00
parent 7f0ce34918
commit f362affa3a
31 changed files with 112 additions and 124 deletions

View File

@ -493,7 +493,7 @@ CallGraphNode *ArgPromotion::DoPromotion(Function *F,
// Start by computing a new prototype for the function, which is the same as
// the old function, but has modified arguments.
const FunctionType *FTy = F->getFunctionType();
std::vector<const Type*> Params;
std::vector<Type*> Params;
typedef std::set<IndicesVector> ScalarizeTable;