Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and...
[oota-llvm.git] / lib / Transforms / IPO / StructRetPromotion.cpp
index 7771bc4b74d0eaa4b69bc4320aa435186137951d..933bbb05783f6d6ace573f58a3ae0d1cb6be5923 100644 (file)
@@ -110,8 +110,8 @@ bool SRETPromotion::PromoteReturn(CallGraphNode *CGN) {
   DOUT << "SretPromotion: sret argument will be promoted\n";
   NumSRET++;
   // [1] Replace use of sret parameter 
-  AllocaInst *TheAlloca = new AllocaInst (*Context, STy, NULL, "mrv", 
-                                          F->getEntryBlock().begin());
+  AllocaInst *TheAlloca = new AllocaInst(STy, NULL, "mrv", 
+                                         F->getEntryBlock().begin());
   Value *NFirstArg = F->arg_begin();
   NFirstArg->replaceAllUsesWith(TheAlloca);