Skip to content

embedded: fix a compiler crash when using dynamic casts #73703

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
May 21, 2024

Conversation

eeckstein
Copy link
Contributor

in SimplifyCheckedCast: only simplify if source and destination address types match
Also diagnose dynamic casts to avoid an internal IRGen error:

rdar://128195403

@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein force-pushed the fix-cast-simplification branch from 2ce4c2f to 1becb0b Compare May 17, 2024 10:19
@eeckstein
Copy link
Contributor Author

@swift-ci test

eeckstein added 2 commits May 17, 2024 15:07
…types match

Fixes a crash when creating a copy_addr with mismtaching types.
rdar://128195403
Dynamic casts need metadata and therefore cannot be used in embedded swift.
Fixes an internal IRGen error.
@eeckstein eeckstein force-pushed the fix-cast-simplification branch from 1becb0b to 369021f Compare May 17, 2024 13:08
@eeckstein
Copy link
Contributor Author

@swift-ci test

@eeckstein eeckstein merged commit 323cb67 into swiftlang:main May 21, 2024
5 checks passed
@eeckstein eeckstein deleted the fix-cast-simplification branch May 21, 2024 06:46
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