mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-23 16:19:52 +00:00
Adjust to the new BasicBlock ctor, which requires a function parameter
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11114 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -290,7 +290,7 @@ bool TailCallElim::ProcessReturningBlock(ReturnInst *Ret, BasicBlock *&OldEntry,
|
||||
if (OldEntry == 0) {
|
||||
OldEntry = &F->getEntryBlock();
|
||||
std::string OldName = OldEntry->getName(); OldEntry->setName("tailrecurse");
|
||||
BasicBlock *NewEntry = new BasicBlock(OldName, OldEntry);
|
||||
BasicBlock *NewEntry = new BasicBlock(OldName, F, OldEntry);
|
||||
new BranchInst(OldEntry, NewEntry);
|
||||
|
||||
// Now that we have created a new block, which jumps to the entry
|
||||
|
||||
Reference in New Issue
Block a user