llvm-project
ef24b4b3 - [Coroutines] Fix debug info scoping for nested structs in coroutine frames (#147622)

Commit
182 days ago
[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.
Author
Parents
Loading