diff options
author | Owen Anderson <resistor@mac.com> | 2009-07-29 22:17:13 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2009-07-29 22:17:13 +0000 |
commit | 4056ca9568acd3a43a4d7ce96c4a7dec2442e071 (patch) | |
tree | 3fd54a55f4fe98f2999bad43a2cb822fd04c64df /llvm/lib/Transforms/Utils/CloneFunction.cpp | |
parent | 9793f0e4d7f7feb746d1a54ce7ac6e311b98f7b1 (diff) | |
download | bcm5719-llvm-4056ca9568acd3a43a4d7ce96c4a7dec2442e071.tar.gz bcm5719-llvm-4056ca9568acd3a43a4d7ce96c4a7dec2442e071.zip |
Move types back to the 2.5 API.
llvm-svn: 77516
Diffstat (limited to 'llvm/lib/Transforms/Utils/CloneFunction.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneFunction.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneFunction.cpp b/llvm/lib/Transforms/Utils/CloneFunction.cpp index dae39b7a790..7b8a8a498bc 100644 --- a/llvm/lib/Transforms/Utils/CloneFunction.cpp +++ b/llvm/lib/Transforms/Utils/CloneFunction.cpp @@ -151,8 +151,7 @@ Function *llvm::CloneFunction(const Function *F, ArgTypes.push_back(I->getType()); // Create a new function type... - FunctionType *FTy = - F->getContext().getFunctionType(F->getFunctionType()->getReturnType(), + FunctionType *FTy = FunctionType::get(F->getFunctionType()->getReturnType(), ArgTypes, F->getFunctionType()->isVarArg()); // Create the new function... |