diff options
| author | Jay Foad <jay.foad@gmail.com> | 2011-07-11 07:56:41 +0000 |
|---|---|---|
| committer | Jay Foad <jay.foad@gmail.com> | 2011-07-11 07:56:41 +0000 |
| commit | f362affa3a695164a94d275fb44d18f44ebb855a (patch) | |
| tree | c07a3ce28c975fcda45c377276692e508f0dc79a /lib/Transforms/Utils/CloneFunction.cpp | |
| parent | 7f0ce349187e6526ed2d92fe7d2757f84f73ce04 (diff) | |
| download | llvm-f362affa3a695164a94d275fb44d18f44ebb855a.tar.gz llvm-f362affa3a695164a94d275fb44d18f44ebb855a.tar.bz2 llvm-f362affa3a695164a94d275fb44d18f44ebb855a.tar.xz | |
De-constify Types in FunctionType::get().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@134888 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/CloneFunction.cpp')
| -rw-r--r-- | lib/Transforms/Utils/CloneFunction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/CloneFunction.cpp b/lib/Transforms/Utils/CloneFunction.cpp index 98c9f68f3e..6ea831f534 100644 --- a/lib/Transforms/Utils/CloneFunction.cpp +++ b/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 |
