[llvm] Fix #86269: remove unused variable (PR #86927)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 03:11:26 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-llvm-transforms
Author: Shan Huang (Apochens)
<details>
<summary>Changes</summary>
Remove the unused variable `BI` introduced in #<!-- -->86269.
---
Full diff: https://github.com/llvm/llvm-project/pull/86927.diff
1 Files Affected:
- (modified) llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp (+1-1)
``````````diff
diff --git a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
index 34d39f3fe6dcac..10c92395b4777a 100644
--- a/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
+++ b/llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp
@@ -509,7 +509,7 @@ void TailRecursionEliminator::createTailRecurseLoopHeader(CallInst *CI) {
BasicBlock *NewEntry = BasicBlock::Create(F.getContext(), "", &F, HeaderBB);
NewEntry->takeName(HeaderBB);
HeaderBB->setName("tailrecurse");
- BranchInst *BI = BranchInst::Create(HeaderBB, NewEntry);
+ BranchInst::Create(HeaderBB, NewEntry);
// If the new branch preserves the debug location of CI, it could result in
// misleading stepping, if CI is located in a conditional branch.
// So, here we don't give any debug location to BI.
``````````
</details>
https://github.com/llvm/llvm-project/pull/86927
More information about the llvm-commits
mailing list