-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Opaque archetypes specializer: Fix cast of nested types #24436
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
Opaque archetypes specializer: Fix cast of nested types #24436
Conversation
@swift-ci Please test |
Build failed |
Build failed |
@swift-ci Please test |
Build failed |
Build failed |
opd.get(), argType); | ||
opd.set(cast); | ||
} | ||
opd.set(createCast(apply.getLoc(), opd.get(), argType)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is createCast() equivalent to castValueToABICompatibleType() in include/swift/SILOptimizer/Utils/Local.h?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah looks like it might be. I will fix in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Follow up: I can not use castValueToABICompatibleType because it does only handle tuple aggregates (no structs).
This is breaking the Windows test suite! https://dev.azure.com/compnerd/windows-swift/_build/results?buildId=1972
|
right, thanks! |
No description provided.