Skip to content
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

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

Merged
merged 2 commits into from
May 21, 2024

Conversation

eeckstein
Copy link
Member

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
Member Author

@swift-ci test

@eeckstein
Copy link
Member Author

@swift-ci test

…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
Copy link
Member Author

@swift-ci test

@eeckstein eeckstein merged commit 323cb67 into apple: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.

None yet

2 participants