Skip to content

Commit 12d04ce

Browse files
committed
[NFC] [Coroutines] Remove unused CoroFree
1 parent f7d931a commit 12d04ce

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

llvm/lib/Transforms/Coroutines/CoroElide.cpp

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ struct Lowerer : coro::LowererBase {
3232
SmallVector<CoroAllocInst *, 1> CoroAllocs;
3333
SmallVector<CoroSubFnInst *, 4> ResumeAddr;
3434
DenseMap<CoroBeginInst *, SmallVector<CoroSubFnInst *, 4>> DestroyAddr;
35-
SmallVector<CoroFreeInst *, 1> CoroFrees;
3635
SmallPtrSet<const SwitchInst *, 4> CoroSuspendSwitches;
3736

3837
Lowerer(Module &M) : LowererBase(M) {}
@@ -290,7 +289,6 @@ bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA,
290289
DominatorTree &DT) {
291290
CoroBegins.clear();
292291
CoroAllocs.clear();
293-
CoroFrees.clear();
294292
ResumeAddr.clear();
295293
DestroyAddr.clear();
296294

@@ -300,8 +298,6 @@ bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA,
300298
CoroBegins.push_back(CB);
301299
else if (auto *CA = dyn_cast<CoroAllocInst>(U))
302300
CoroAllocs.push_back(CA);
303-
else if (auto *CF = dyn_cast<CoroFreeInst>(U))
304-
CoroFrees.push_back(CF);
305301
}
306302

307303
// Collect all coro.subfn.addrs associated with coro.begin.

0 commit comments

Comments
 (0)