summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/InlineFunction.cpp
diff options
context:
space:
mode:
authorOwen Anderson <resistor@mac.com>2009-07-15 23:53:25 +0000
committerOwen Anderson <resistor@mac.com>2009-07-15 23:53:25 +0000
commit4fdeba97063da375ba360a021db34f025c0d9faf (patch)
treecd662afb216dfa9b654e98cc1033a4dca474d8d2 /llvm/lib/Transforms/Utils/InlineFunction.cpp
parentf060b4d9771d1035891aa458f5688ed8c12a30d4 (diff)
downloadbcm5719-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/Utils/InlineFunction.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/InlineFunction.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/InlineFunction.cpp b/llvm/lib/Transforms/Utils/InlineFunction.cpp
index 30b1caaa4c5..e1b493c204a 100644
--- a/llvm/lib/Transforms/Utils/InlineFunction.cpp
+++ b/llvm/lib/Transforms/Utils/InlineFunction.cpp
@@ -309,7 +309,7 @@ bool llvm::InlineFunction(CallSite CS, CallGraph *CG, const TargetData *TD) {
// Create the alloca. If we have TargetData, use nice alignment.
unsigned Align = 1;
if (TD) Align = TD->getPrefTypeAlignment(AggTy);
- Value *NewAlloca = new AllocaInst(*Context, AggTy, 0, Align,
+ Value *NewAlloca = new AllocaInst(AggTy, 0, Align,
I->getName(),
&*Caller->begin()->begin());
// Emit a memcpy.
OpenPOWER on IntegriCloud