[PATCH] D95594: [NFC][Transforms][Coroutine] Remove unused variable

Yang Fan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 23:49:54 PST 2021


nullptr.cpp created this revision.
Herald added subscribers: lxfind, hiraditya.
nullptr.cpp requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D95594

Files:
  llvm/lib/Transforms/Coroutines/CoroSplit.cpp


Index: llvm/lib/Transforms/Coroutines/CoroSplit.cpp
===================================================================
--- llvm/lib/Transforms/Coroutines/CoroSplit.cpp
+++ llvm/lib/Transforms/Coroutines/CoroSplit.cpp
@@ -652,7 +652,7 @@
   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())


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95594.319771.patch
Type: text/x-patch
Size: 642 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210128/db0e647c/attachment.bin>


More information about the llvm-commits mailing list