[llvm] 8644eb0 - [NFC][Transforms][Coroutines] Remove unused variable
Yang Fan via llvm-commits
llvm-commits at lists.llvm.org
Thu Jan 28 00:43:20 PST 2021
Author: Yang Fan
Date: 2021-01-28T16:42:30+08:00
New Revision: 8644eb024bbd5bab7d8de9f5df97d931f1a8847b
URL: https://github.com/llvm/llvm-project/commit/8644eb024bbd5bab7d8de9f5df97d931f1a8847b
DIFF: https://github.com/llvm/llvm-project/commit/8644eb024bbd5bab7d8de9f5df97d931f1a8847b.diff
LOG: [NFC][Transforms][Coroutines] Remove unused variable
Added:
Modified:
llvm/lib/Transforms/Coroutines/CoroSplit.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
index c4d7db9153e2..27259e40ad48 100644
--- a/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ b/llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -652,7 +652,7 @@ void CoroCloner::salvageDebugInfo() {
for (DbgDeclareInst *DDI : Worklist) {
if (IsUnreachableBlock(DDI->getParent()))
DDI->eraseFromParent();
- else if (auto *Alloca = dyn_cast_or_null<AllocaInst>(DDI->getAddress())) {
+ else if (dyn_cast_or_null<AllocaInst>(DDI->getAddress())) {
// Count all non-debuginfo uses in reachable blocks.
unsigned Uses = 0;
for (auto *User : DDI->getAddress()->users())
More information about the llvm-commits
mailing list