[all-commits] [llvm/llvm-project] db001b: [clang][CodeGenCoroutine] Emit missing cleanup sco...

Weibo He via All-commits all-commits at lists.llvm.org
Tue Apr 28 03:47:51 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: db001b920668d26523e15c95fa34f85e6b13456e
      https://github.com/llvm/llvm-project/commit/db001b920668d26523e15c95fa34f85e6b13456e
  Author: Weibo He <NewSigma at 163.com>
  Date:   2026-04-28 (Tue, 28 Apr 2026)

  Changed paths:
    M clang/lib/CodeGen/CGCoroutine.cpp
    M clang/test/CodeGenCoroutines/coro-await-resume-eh.cpp
    M clang/test/CodeGenCoroutines/coro-dest-slot.cpp
    M clang/test/CodeGenCoroutines/coro-gro.cpp
    A clang/test/CodeGenCoroutines/coro-gro4.cpp
    M clang/test/CodeGenCoroutines/coro-suspend-cleanups.cpp

  Log Message:
  -----------
  [clang][CodeGenCoroutine] Emit missing cleanup scope for lazy GRO conversion (#194281)

In #151067, we promoted GRO ahead of `coro.end`. However, there is a
regression that GRO cleanup might go into coroutine resume and destroy
parts. This patch introduces a dedicated cleanup scope for GRO, ensuring
that GRO cleanup does not interfere with other logic.

Close #193412



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list