diff options
| author | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
|---|---|---|
| committer | Owen Anderson <resistor@mac.com> | 2009-07-15 23:53:25 +0000 |
| commit | 4fdeba97063da375ba360a021db34f025c0d9faf (patch) | |
| tree | cd662afb216dfa9b654e98cc1033a4dca474d8d2 /llvm/lib/Transforms/IPO/StructRetPromotion.cpp | |
| parent | f060b4d9771d1035891aa458f5688ed8c12a30d4 (diff) | |
| download | bcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.tar.gz bcm5719-llvm-4fdeba97063da375ba360a021db34f025c0d9faf.zip | |
Revert yesterday's change by removing the LLVMContext parameter to AllocaInst and MallocInst.
llvm-svn: 75863
Diffstat (limited to 'llvm/lib/Transforms/IPO/StructRetPromotion.cpp')
| -rw-r--r-- | llvm/lib/Transforms/IPO/StructRetPromotion.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp index 7771bc4b74d..933bbb05783 100644 --- a/llvm/lib/Transforms/IPO/StructRetPromotion.cpp +++ b/llvm/lib/Transforms/IPO/StructRetPromotion.cpp @@ -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); |

