Move EVER MORE stuff over to LLVMContext.
[oota-llvm.git] / lib / Transforms / IPO / RaiseAllocations.cpp
index 6c32050909738ce43fccbe8db24464d382ef5090..ce976c8d69ea910c458bd77393cc47283071d275 100644 (file)
@@ -169,7 +169,8 @@ bool RaiseAllocations::runOnModule(Module &M) {
               CastInst::CreateIntegerCast(Source, Type::Int32Ty, false/*ZExt*/,
                                           "MallocAmtCast", I);
 
-          MallocInst *MI = new MallocInst(Type::Int8Ty, Source, "", I);
+          MallocInst *MI = new MallocInst(*Context, Type::Int8Ty,
+                                          Source, "", I);
           MI->takeName(I);
           I->replaceAllUsesWith(MI);