Skip to content

[embedded] Allow metadata for DynamicSelfType to support using Self in classes #69266

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 2 commits into from
Oct 19, 2023

Conversation

kubamracek
Copy link
Contributor

@kubamracek kubamracek commented Oct 19, 2023

Looking for some guidance on this :) The immediate problem I observed is that in a class method, using Self ends up emitting a thick metadata instruction for the dynamic self type and that fails the current assert we have for embedded Swift. This particular case seems to be fixable by just allowing metadata emission on DynamicSelfType in IRGen, but I'm wondering if there's any other considerations for dynamic self we need to take into look into :)

Fixes rdar://117174867

@kubamracek
Copy link
Contributor Author

@swift-ci please test

@kubamracek kubamracek added the embedded Embedded Swift label Oct 19, 2023
@kubamracek
Copy link
Contributor Author

@swift-ci please test

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.

1 participant