Skip to content

[IRGen] Fix crash in CVW generation for ObjC references #77545

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
Nov 12, 2024

Conversation

drexin
Copy link
Contributor

@drexin drexin commented Nov 12, 2024

rdar://139664644

The code that differentiates between regular ObjC and native Swift ObjC references could crash when generics were involved. Instead of through the TypeInfo, we are going directly throught the SILType to the type decl, which avoids the crash caused by casting the TypeInfo.

@drexin drexin requested a review from rjmccall as a code owner November 12, 2024 00:23
@drexin
Copy link
Contributor Author

drexin commented Nov 12, 2024

@swift-ci smoke test

rdar://139664644

The code that differentiates between regular ObjC and native Swift ObjC references could crash when generics were involved. Instead of through the TypeInfo, we are going directly throught the SILType to the type decl, which avoids the crash caused by casting the TypeInfo.
@drexin
Copy link
Contributor Author

drexin commented Nov 12, 2024

@swift-ci smoke test

@drexin drexin merged commit 27bb00e into swiftlang:main Nov 12, 2024
3 checks passed
@drexin drexin deleted the wip-139664644 branch November 12, 2024 06:39
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