[NFC] [Coroutines] Remove unused variable: UnreachableCache
authorChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 25 May 2021 12:33:46 +0000 (20:33 +0800)
committerChuanqi Xu <yedeng.yd@linux.alibaba.com>
Tue, 25 May 2021 12:33:46 +0000 (20:33 +0800)
llvm/lib/Transforms/Coroutines/CoroSplit.cpp

index a1c0f4f..fb3f3cf 100644 (file)
@@ -661,7 +661,6 @@ void CoroCloner::salvageDebugInfo() {
   // Remove all salvaged dbg.declare intrinsics that became
   // either unreachable or stale due to the CoroSplit transformation.
   DominatorTree DomTree(*NewF);
-  SmallDenseMap<BasicBlock *, bool, 8> UnreachableCache;
   auto IsUnreachableBlock = [&](BasicBlock *BB) {
     return !isPotentiallyReachable(&NewF->getEntryBlock(), BB, nullptr,
                                    &DomTree);