mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Push LLVMContexts through the IntegerType APIs.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@78948 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -394,7 +394,7 @@ bool TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry,
|
||||
// create the new entry block, allowing us to branch back to the old entry.
|
||||
if (OldEntry == 0) {
|
||||
OldEntry = &F->getEntryBlock();
|
||||
BasicBlock *NewEntry = BasicBlock::Create("", F, OldEntry);
|
||||
BasicBlock *NewEntry = BasicBlock::Create(F->getContext(), "", F, OldEntry);
|
||||
NewEntry->takeName(OldEntry);
|
||||
OldEntry->setName("tailrecurse");
|
||||
BranchInst::Create(OldEntry, NewEntry);
|
||||
|
Reference in New Issue
Block a user