[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:00 PDT 2026
================
@@ -1163,10 +1162,9 @@ static void handleNoSuspendCoroutine(coro::Shape &Shape) {
auto *CoroBegin = Shape.CoroBegin;
switch (Shape.ABI) {
case coro::ABI::Switch: {
- auto SwitchId = Shape.getSwitchCoroId();
- auto *AllocInst = SwitchId->getCoroAlloc();
- coro::replaceCoroFree(SwitchId, /*Elide=*/AllocInst != nullptr);
----------------
ChuanqiXu9 wrote:
Does this changes semantics?
https://github.com/llvm/llvm-project/pull/185336
More information about the cfe-commits
mailing list