Skip to content

Conversation

eeckstein
Copy link
Contributor

…_stack` and `apply` simplification

When replacing an opened existential type with the concrete type, we didn't consider that the existential archetype can also be a "dependent" type of the root archetype.
For now, just bail in this case. In future we can support dependent archetypes as well.

Fixes a compiler crash.
rdar://158594365
@eeckstein eeckstein requested a review from a team as a code owner August 27, 2025 15:29
@eeckstein eeckstein changed the title Optimizer: fix handling of dependent existential archetypes in alloc_stack and apply simplification [6.2] Optimizer: fix handling of dependent existential archetypes in alloc_stack and apply simplification Aug 27, 2025
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 90e599b into swiftlang:release/6.2 Aug 28, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants