Move types back to the 2.5 API.
[oota-llvm.git] / lib / Transforms / IPO / StructRetPromotion.cpp
index 8d6671dbb781501b73cd08ca3d0998c4b1e5f55d..a2413597a3eaa749ec2134a69b9841bfc10047b3 100644 (file)
@@ -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);