Skip to content

Fix crash in OSLogOptimization #80961

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 22, 2025
Merged

Conversation

meg-gupta
Copy link
Contributor

@meg-gupta meg-gupta commented Apr 21, 2025

A metatype need not always come from a metatype instruction. It can come from a SILArgument. Fix the invalid cast operation in OSLogOptimization.

Fixes rdar://146160325

Fixes #72733

A metatype need not always come from a metatype instruction. It can come from
a SILArgument. Fix the invalid cast operation in OSLogOptimization.

Fixes rdar://146160325
@meg-gupta meg-gupta requested a review from eeckstein as a code owner April 21, 2025 18:51
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta enabled auto-merge April 21, 2025 19:02
@meg-gupta meg-gupta merged commit 3547ba5 into swiftlang:main Apr 22, 2025
4 of 5 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.

Compiler crashed: Referring os.Logger instance in custom constructor of String
2 participants