Skip to content

SILGen: Soften assertions it is okay for an base value of an boxed ex… #21296

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

aschwaighofer
Copy link
Contributor

…istentials not to be an address

rdar://46343977

…istentials not to be an address

rdar://46343977
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please test and merge

Copy link
Contributor

@rjmccall rjmccall left a comment

Choose a reason for hiding this comment

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

LGTM

base.getType().getPreferredExistentialRepresentation(SGF.SGM.M) ==
ExistentialRepresentation::Boxed) &&
"base value of open-existential component was not an address or a "
"boxed existential?");
Copy link
Contributor

Choose a reason for hiding this comment

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

It's weird that boxed existentials end up in OpenOpaqueExistentialComponent, but I see that there's code there explicitly to handle them, so I guess it's as-intended.

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.

3 participants