-
Notifications
You must be signed in to change notification settings - Fork 10.5k
IRGen: Deal with broken AST from batch mode #29926
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
IRGen: Deal with broken AST from batch mode #29926
Conversation
@swift-ci Please test |
Build failed |
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.
A better fix might be to change IRGen's type lowering to accept ErrorType and produce a zero-sized or uninhabited type or something.
@swift-ci Please test macOS |
Build failed |
@swift-ci please clean test macOS |
Build failed |
Yeah, looking at this again I suggest sinking the fix down into the type lowering code. Otherwise you'll hit a similar crash when iterating over the stored properties of structs and enums. Also, breaking out of the class layout loop like that will leave you with a layout that's missing some stored properties, which could again cause crashes later. |
rdar://59552858
695fc1c
to
e641c4a
Compare
@swift-ci Please test |
Build failed |
Build failed |
Thank you! |
@swift-ci please test |
rdar://59552858