Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and...
[oota-llvm.git] / lib / Transforms / IPO / IndMemRemoval.cpp
index d3e609dd82049c178cdb30fed84e59d6c7146280..2086a166833f5add8e855ab4755b6be85df88734 100644 (file)
@@ -73,7 +73,7 @@ bool IndMemRemPass::runOnModule(Module &M) {
       BasicBlock* bb = BasicBlock::Create("entry",FN);
       Instruction* c = CastInst::CreateIntegerCast(
           FN->arg_begin(), Type::Int32Ty, false, "c", bb);
-      Instruction* a = new MallocInst(*Context, Type::Int8Ty, c, "m", bb);
+      Instruction* a = new MallocInst(Type::Int8Ty, c, "m", bb);
       ReturnInst::Create(a, bb);
       ++NumBounce;
       NumBounceSites += F->getNumUses();