summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-29 22:17:13 +0000
committerOwen Anderson <resistor@mac.com>2009-07-29 22:17:13 +0000
commit4056ca9568acd3a43a4d7ce96c4a7dec2442e071 (patch)
tree3fd54a55f4fe98f2999bad43a2cb822fd04c64df /llvm/lib/Transforms/IPO/StructRetPromotion.cpp
parent9793f0e4d7f7feb746d1a54ce7ac6e311b98f7b1 (diff)
downloadbcm5719-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/IPO/StructRetPromotion.cpp')
-rw-r--r--llvm/lib/Transforms/IPO/StructRetPromotion.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
index 8d6671dbb78..a2413597a3e 100644
--- a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
+++ b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp
@@ -232,8 +232,7 @@ Function *SRETPromotion::cloneFunctionBody(Function *F,
AttributesVec.push_back(AttributeWithIndex::get(~0, attrs));
- FunctionType *NFTy =
- F->getContext().getFunctionType(STy, Params, FTy->isVarArg());
+ FunctionType *NFTy = FunctionType::get(STy, Params, FTy->isVarArg());
Function *NF = Function::Create(NFTy, F->getLinkage());
NF->takeName(F);
NF->copyAttributesFrom(F);
OpenPOWER on IntegriCloud