Skip to content

[embedded] Start flagging AllocRefDynamicInst usage in embedded Swift #70441

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

IRGen for AllocRefDynamicInst uses the metadata to look up the size of the instance, but in embedded Swift we either don't have metadata at all (for structs), or they don't contain instance sizes (for class metadata). Let's start flagging AllocRefDynamicInst use in PerformanceDiagnostics to prevent IRGen compiler crashes or miscompiles.

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek added the embedded Embedded Swift label Dec 13, 2023
@kubamracek
Copy link
Contributor Author

@swift-ci please test Windows platform

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
Copy link
Contributor Author

@swift-ci please test

1 similar comment
@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek merged commit 829f442 into swiftlang:main May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
embedded Embedded Swift
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants