Skip to content

[embedded] Fix generic function skipping in PerfDiags, diagnose KeyPathInsts in closures #76464

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

kubamracek
Copy link
Contributor

We were skipping some functions (generic, but fully specialized) in PerformanceDiagnostics, and that resulted in e.g. a KeyPathInst in a closure not being flagged. See the attached testcase, which ends up crashing the compiler in IRGen when an attempt to lower a KeyPathInst is made. Let's fix that.

rdar://135948987

@kubamracek
Copy link
Contributor Author

@swift-ci please test

Copy link
Contributor

@eeckstein eeckstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@kubamracek kubamracek merged commit a4bd03c into swiftlang:main Sep 15, 2024
5 checks passed
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