Skip to content

SIL: Use SubstitutionMap::mapIntoTypeExpansionContext() in SILTypeSubstituter #81079

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 24, 2025

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Apr 24, 2025

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

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 requested a review from jckarter as a code owner April 24, 2025 18:40
@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke 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
Copy link
Contributor Author

@swift-ci Please smoke test

@slavapestov slavapestov enabled auto-merge April 24, 2025 18:42
@slavapestov slavapestov merged commit 57ca3d4 into swiftlang:main Apr 24, 2025
3 checks passed
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.

1 participant