llvm-project
18a182b8 - [coro] Fix crash due to DILabel in `LineTableOnly` mode (#148095)

Commit
201 days ago
[coro] Fix crash due to DILabel in `LineTableOnly` mode (#148095) Since the recent commit de3c8410d8, the `CoroSplit` pass adds `DILabel`s to help find the location of a suspension point from its suspension point id. Those labels are added in both `DebugEmissionKind::FullDebug` and `DebugEmissionKind::LineTableOnly` mode. The idea was that this information is necessary to reconstruct async stack traces and should hence also be available for LineTableOnly. Unfortunately, it turns out that the DWARF backend does not expect to find any DILabel debug metadata if the emission kind is set to LineTableOnly. The Dwarf backend simply runs into an assertion in that case. This commit fixes the issue by only adding `DILabel` for FullDebug.
Author
Parents
Loading