[llvm] Fix #86269: remove unused variable (PR #86927)
Shan Huang via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 28 03:10:58 PDT 2024
https://github.com/Apochens created https://github.com/llvm/llvm-project/pull/86927
Remove the unused variable `BI` introduced in #86269.
>From d172bf68387a90c7f353d5afa40c494a3b218717 Mon Sep 17 00:00:00 2001
From: Apochens <52285902006 at stu.ecnu.edu.cn>
Date: Thu, 28 Mar 2024 10:08:42 +0000
Subject: [PATCH] remove unused variable
---
llvm/lib/Transforms/Scalar/TailRecursionElimination.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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.
More information about the llvm-commits
mailing list