Skip to content

SILCombine: fix an assertion crash in SILCombine when casting AnyClass to Any #33742

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
Sep 1, 2020

Conversation

eeckstein
Copy link
Contributor

This caused a problem when propagating the concrete type of an existential: if the concrete type is itself an opened existential, it was not added to the OpenedArchetypeTracker.

https://bugs.swift.org/browse/SR-13444
rdar://problem/68077098

…s to Any

This caused a problem when propagating the concrete type of an existential: if the concrete type is itself an opened existential, it was not added to the OpenedArchetypeTracker.

https://bugs.swift.org/browse/SR-13444
rdar://problem/68077098
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein requested a review from atrick September 1, 2020 12:56
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

I'm not sure why this test case caused this check to fail CEI.ConcreteType->isOpenedExistential(). But the fix certainly looks good. Thanks!

Oh... maybe this is because the concrete type was C.Type and the concreteValue is an openExistentialMetatype but I'm not sure

@eeckstein eeckstein merged commit 6cad1c2 into swiftlang:master Sep 1, 2020
@eeckstein eeckstein deleted the fix-existential-propagation branch September 3, 2020 17:01
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