aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/CloneFunction.cpp
diff options
context:
space:
mode:
authorJay Foad <jay.foad@gmail.com>2011-07-12 14:06:48 +0000
committerJay Foad <jay.foad@gmail.com>2011-07-12 14:06:48 +0000
commitb804a2b751ac0d1a5673ec395c4cecb326e73dfb (patch)
tree3f55036b549a4067ca1c1c12cf860e118e229e1c /llvm/lib/Transforms/Utils/CloneFunction.cpp
parent0a33f7e678e8d778e499ad42e0b610b15f5ba772 (diff)
downloadllvm-b804a2b751ac0d1a5673ec395c4cecb326e73dfb.zip
llvm-b804a2b751ac0d1a5673ec395c4cecb326e73dfb.tar.gz
llvm-b804a2b751ac0d1a5673ec395c4cecb326e73dfb.tar.bz2
Second attempt at de-constifying LLVM Types in FunctionType::get(),
StructType::get() and TargetData::getIntPtrType(). llvm-svn: 134982
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/CloneFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp
index 98c9f68f..6ea831f 100644
--- a/llvm/lib/Transforms/Utils/CloneFunction.cpp
+++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp
@@ -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