[clang] [llvm] [mlir] [debuginfo][coro] Emit debug info labels for coroutine resume points (PR #141937)
Paul T Robinson via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 1 10:43:37 PDT 2025
================
@@ -1478,6 +1479,18 @@ struct SwitchCoroutineSplitter {
static void createResumeEntryBlock(Function &F, coro::Shape &Shape) {
LLVMContext &C = F.getContext();
+ DIBuilder DBuilder(*F.getParent(), /*AllowUnresolved*/ false);
+ DISubprogram *DIS = F.getSubprogram();
+ // If there is no DISubprogram for F, it implies the function is compiled
+ // without debug info. So we also don't generate debug info for the
+ // suspension points, either.
----------------
pogo59 wrote:
```suggestion
// without debug info. So we also don't generate debug info for the
// suspension points.
```
https://github.com/llvm/llvm-project/pull/141937
More information about the cfe-commits
mailing list