Skip to content

[DebugInfo] Emit declaration by checking both type and SIL func repr #73120

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

Conversation

augusto2112
Copy link
Contributor

(cherry picked from commit e0e7a08)

Explanation: when compiling with LTO enabled, debug info generation needs to emit declarations of functions that are nested in types (methods, initializers, static methods, etc). This patch fixes this condition was too broad, and nesting free functions that were referenced inside types (like lazy initializers) which shouldn't be nested.
Scope: Small.
Issue: rdar://125729500
Original PRs: #72963
Risk: Low, only affects debug info generation of LTO builds.

@augusto2112 augusto2112 requested a review from a team as a code owner April 18, 2024 21:49
@augusto2112
Copy link
Contributor Author

@swift-ci test

@adrian-prantl adrian-prantl merged commit 96d05ec into swiftlang:release/6.0 Apr 23, 2024
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