[all-commits] [llvm/llvm-project] ef24b4: [Coroutines] Fix debug info scoping for nested str...

Grigory Pastukhov via All-commits all-commits at lists.llvm.org
Thu Jul 10 10:13:47 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ef24b4b3261fa8f391710cfd73691e97233faaa2
      https://github.com/llvm/llvm-project/commit/ef24b4b3261fa8f391710cfd73691e97233faaa2
  Author: Grigory Pastukhov <99913765+grigorypas at users.noreply.github.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M llvm/lib/Transforms/Coroutines/CoroFrame.cpp
    A llvm/test/Transforms/Coroutines/coro-split-dbg-nested-struct.ll

  Log Message:
  -----------
  [Coroutines] Fix debug info scoping for nested structs in coroutine frames (#147622)

When generating debug info for coroutine frames, nested struct types
were incorrectly inheriting the top-level function scope instead of
having their parent struct as scope. This caused assertion failures in
DebugInfoMetadata.h during member list replacement for complex nested
struct hierarchies.

Fix by passing the parent DIStruct as scope when recursively calling
solveDIType for nested struct fields, ensuring proper debug info scoping
hierarchy.

Add regression test that validates proper nested struct scoping
hierarchy and
prevents future regressions.



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