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/LowerSetJmp.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/LowerSetJmp.cpp')
-rw-r--r-- | llvm/lib/Transforms/IPO/LowerSetJmp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp index 8f5d50d3b69..dfdf5b6f2d4 100644 --- a/llvm/lib/Transforms/IPO/LowerSetJmp.cpp +++ b/llvm/lib/Transforms/IPO/LowerSetJmp.cpp @@ -311,7 +311,7 @@ AllocaInst* LowerSetJmp::GetSetJmpMap(Function* Func) // Fill in the alloca and call to initialize the SJ map. const Type *SBPTy = Context->getPointerTypeUnqual(Type::Int8Ty); - AllocaInst* Map = new AllocaInst(*Context, SBPTy, 0, "SJMap", Inst); + AllocaInst* Map = new AllocaInst(SBPTy, 0, "SJMap", Inst); CallInst::Create(InitSJMap, Map, "", Inst); return SJMap[Func] = Map; } @@ -408,7 +408,7 @@ void LowerSetJmp::TransformSetJmpCall(CallInst* Inst) UI != E; ++UI) if (cast<Instruction>(*UI)->getParent() != ABlock || InstrsAfterCall.count(cast<Instruction>(*UI))) { - DemoteRegToStack(*Context, *II); + DemoteRegToStack(*II); break; } InstrsAfterCall.clear(); |