Skip to content

Commit 8963a47

Browse files
authored
Fix #86269: remove unused variable (#86927)
Remove the unused variable `BI` introduced in #86269.
1 parent e640d9e commit 8963a47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -509,10 +509,10 @@ void TailRecursionEliminator::createTailRecurseLoopHeader(CallInst *CI) {
509509
BasicBlock *NewEntry = BasicBlock::Create(F.getContext(), "", &F, HeaderBB);
510510
NewEntry->takeName(HeaderBB);
511511
HeaderBB->setName("tailrecurse");
512-
BranchInst *BI = BranchInst::Create(HeaderBB, NewEntry);
512+
BranchInst::Create(HeaderBB, NewEntry);
513513
// If the new branch preserves the debug location of CI, it could result in
514514
// misleading stepping, if CI is located in a conditional branch.
515-
// So, here we don't give any debug location to BI.
515+
// So, here we don't give any debug location to the new branch.
516516

517517
// Move all fixed sized allocas from HeaderBB to NewEntry.
518518
for (BasicBlock::iterator OEBI = HeaderBB->begin(), E = HeaderBB->end(),

0 commit comments

Comments
 (0)