Skip to content

Try harder not to emit calls to swift_getExtendedExistentialTypeMetadata() [5.9] #65341

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

Conversation

slavapestov
Copy link
Contributor

Older runtimes don't have entry points for instantiating constrained existential metadata, but we allow the use of these types anyway, with some Sema diagnostics which attempt to detect situations where IRGen might need the metadata. IRGen would go and instantiate metadata in cases not caught by Sema anyway. This gives one of them.

…peMetadata()

This entry point doesn't exist on older runtimes. Sema enforces
that constrained existentials don't appear in substitution maps,
however IRGen would sometimes try to instantiate metadata even
if the user didn't do that.

Fixes swiftlang#64657.
@slavapestov slavapestov requested a review from a team as a code owner April 21, 2023 02:13
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov merged commit 90df66a into swiftlang:release/5.9 Apr 21, 2023
@AnthonyLatsis AnthonyLatsis added the 🍒 release cherry pick Flag: Release branch cherry picks label May 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 5.9
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants