Move EVER MORE stuff over to LLVMContext.
[oota-llvm.git] / lib / Transforms / IPO / ArgumentPromotion.cpp
index 75a0415fadf50700017b63b41b76a900c437f381..7f1c3cb21607997ee7025ffce606b496cb6797c8 100644 (file)
@@ -755,7 +755,7 @@ Function *ArgPromotion::DoPromotion(Function *F,
 
       // Just add all the struct element types.
       const Type *AgTy = cast<PointerType>(I->getType())->getElementType();
-      Value *TheAlloca = new AllocaInst(AgTy, 0, "", InsertPt);
+      Value *TheAlloca = new AllocaInst(*Context, AgTy, 0, "", InsertPt);
       const StructType *STy = cast<StructType>(AgTy);
       Value *Idxs[2] = { Context->getConstantInt(Type::Int32Ty, 0), 0 };