[clang] [llvm] [RFC][Coroutines] Implement HALO for coroutines that flow off final suspend (PR #185336)
Chuanqi Xu via cfe-commits
cfe-commits at lists.llvm.org
Sun Mar 8 20:38:01 PDT 2026
================
@@ -1100,10 +1100,9 @@ void coro::SwitchCloner::create() {
// Clone the function
coro::BaseCloner::create();
- // Eliminate coro.free from the clones, replacing it with 'null' in cleanup,
- // to suppress deallocation code.
- coro::replaceCoroFree(cast<CoroIdInst>(VMap[Shape.CoroBegin->getId()]),
- /*Elide=*/FKind == coro::CloneKind::SwitchCleanup);
----------------
ChuanqiXu9 wrote:
Does this change semantics?
https://github.com/llvm/llvm-project/pull/185336
More information about the cfe-commits
mailing list