De-constify Types in FunctionType::get().
[oota-llvm.git] / lib / Transforms / Utils / CloneFunction.cpp
index 98c9f68f3ec095b8f313420369b208693e6833c5..6ea831f5345b5ba718cd1ac6f5bafa5f4f0ecef5 100644 (file)
@@ -140,7 +140,7 @@ void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
 Function *llvm::CloneFunction(const Function *F, ValueToValueMapTy &VMap,
                               bool ModuleLevelChanges,
                               ClonedCodeInfo *CodeInfo) {
-  std::vector<const Type*> ArgTypes;
+  std::vector<Type*> ArgTypes;
 
   // The user might be deleting arguments to the function by specifying them in
   // the VMap.  If so, we need to not add the arguments to the arg ty vector