Skip to content

🍒[clang][PCH] Don't try to create standalone debug-info for types marked nodebug (#123253) #10258

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 17, 2025

Conversation

Michael137
Copy link

Fixes one of the crashes uncovered by
llvm#118710

getOrCreateStandaloneType asserts that a DIType was created for the requested type. If the Decl was marked nodebug, however, we can't generate debug-info for it, so we would previously trigger the assert. For now keep the assertion around and check the nodebug at the callsite.

(cherry picked from commit 30e276d)

…ed nodebug (llvm#123253)

Fixes one of the crashes uncovered by
llvm#118710

`getOrCreateStandaloneType` asserts that a `DIType` was created for the
requested type. If the `Decl` was marked `nodebug`, however, we can't
generate debug-info for it, so we would previously trigger the assert.
For now keep the assertion around and check the `nodebug` at the
callsite.

(cherry picked from commit 30e276d)
@Michael137 Michael137 requested a review from a team as a code owner March 14, 2025 12:07
@Michael137
Copy link
Author

@swift-ci test

@Michael137 Michael137 merged commit 21406e9 into stable/20240723 Mar 17, 2025
3 checks passed
@Michael137 Michael137 deleted the clang/pch-nodebug-guartd branch March 17, 2025 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants