1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 03:02:36 +01:00

[NFC][Transforms][Coroutines] Remove unused variable

This commit is contained in:
Yang Fan 2021-01-28 15:45:44 +08:00
parent 32bd0408b4
commit 9320fb3295

View File

@ -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())