Skip to content

[IRGen] Restore the old code path for emitting existential type metadata for plain protocol and protocol composition types. #58481

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 1 commit into from
Apr 28, 2022

Conversation

hborla
Copy link
Member

@hborla hborla commented Apr 28, 2022

These types should always be wrapped in ExistentialType, but there isn't sufficient validation of this throughout the compiler yet. Change the fatal error when the metadata request sees these plain types to an assert, and restore the old type metadata emission path for protocol and protocol composition types to avoid crashing in those cases.

Resolves: rdar://92413116

for plain protocol and protocol composition types.

These types should always be wrapped in ExistentialType, but there isn't
sufficient validation of this throughout the compiler yet. Change
the fatal error when the metadata request sees these plain types to an
assert and restore the old type metadata emission path for protocol and
protocol composition types to avoid crashing in those cases.
@hborla hborla requested a review from rjmccall April 28, 2022 03:45
@hborla
Copy link
Member Author

hborla commented Apr 28, 2022

@swift-ci please smoke test

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