Skip to content

[6.2] SIL: Use SubstitutionMap::mapIntoTypeExpansionContext() in SILTypeSubstituter #81080

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

Open
wants to merge 1 commit into
base: release/6.2
Choose a base branch
from

Conversation

slavapestov
Copy link
Contributor

6.2 cherry-pick of #81079.

@slavapestov slavapestov requested a review from a team as a code owner April 24, 2025 18:46
@slavapestov slavapestov changed the title SIL: Use SubstitutionMap::mapIntoTypeExpansionContext() in SILTypeSubstituter [6.2] SIL: Use SubstitutionMap::mapIntoTypeExpansionContext() in SILTypeSubstituter Apr 24, 2025
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

…stituter

I made a mistake in 47156e0. There was a
call to call to forAbstract() in SILTypeSubstituter that passed in the
wrong subject ype.

This call was inside SILTypeSubstituter's own implementation of replacing
opaque types with underlying types in a substitution map. This duplicates
an existing utility method in SubstitutionMap anyway, so let's just use
that instead.

Fixes rdar://149353285.
@slavapestov slavapestov force-pushed the fix-rdar149353285-6.2 branch from 0a62be2 to 88814e4 Compare April 28, 2025 15:52
@slavapestov
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
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants