forked from OSchip/llvm-project
[NFC] [Coroutines] Remove unused CoroFree
This commit is contained in:
parent
f7d931ac37
commit
12d04ce956
|
@ -32,7 +32,6 @@ struct Lowerer : coro::LowererBase {
|
|||
SmallVector<CoroAllocInst *, 1> CoroAllocs;
|
||||
SmallVector<CoroSubFnInst *, 4> ResumeAddr;
|
||||
DenseMap<CoroBeginInst *, SmallVector<CoroSubFnInst *, 4>> DestroyAddr;
|
||||
SmallVector<CoroFreeInst *, 1> CoroFrees;
|
||||
SmallPtrSet<const SwitchInst *, 4> CoroSuspendSwitches;
|
||||
|
||||
Lowerer(Module &M) : LowererBase(M) {}
|
||||
|
@ -290,7 +289,6 @@ bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA,
|
|||
DominatorTree &DT) {
|
||||
CoroBegins.clear();
|
||||
CoroAllocs.clear();
|
||||
CoroFrees.clear();
|
||||
ResumeAddr.clear();
|
||||
DestroyAddr.clear();
|
||||
|
||||
|
@ -300,8 +298,6 @@ bool Lowerer::processCoroId(CoroIdInst *CoroId, AAResults &AA,
|
|||
CoroBegins.push_back(CB);
|
||||
else if (auto *CA = dyn_cast<CoroAllocInst>(U))
|
||||
CoroAllocs.push_back(CA);
|
||||
else if (auto *CF = dyn_cast<CoroFreeInst>(U))
|
||||
CoroFrees.push_back(CF);
|
||||
}
|
||||
|
||||
// Collect all coro.subfn.addrs associated with coro.begin.
|
||||
|
|
Loading…
Reference in New Issue