[llvm] [Coroutines] Fix debug info scoping for nested structs in coroutine frames (PR #147622)
Adrian Vogelsgesang via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 8 19:10:54 PDT 2025
================
@@ -0,0 +1,50 @@
+; RUN: opt < %s -passes='cgscc(coro-split)' -S | FileCheck %s
+
+; Test that nested structs in coroutine frames have correct debug info scoping.
+
+target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
+target triple = "x86_64-unknown-linux-gnu"
+
+; Minimal nested struct types that trigger the scoping issue
----------------
vogelsgesang wrote:
```suggestion
; Minimal nested struct types that used to trigger a scoping issue:
; We used to set the wrong `scope` for the `DIDerivedType` member entries of the `DICompositeType`
```
https://github.com/llvm/llvm-project/pull/147622
More information about the llvm-commits
mailing list