-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[RemoteAST] Stop bypassing resilience when doing queries. #20026
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
Conversation
Please test with following PR: @swift-ci Please test |
Build failed |
Build failed |
Thank you, John. |
@@ -878,7 +877,7 @@ class RemoteASTContextImpl { | |||
VarDecl *member = findField(typeDecl, memberName); | |||
|
|||
// If we found a member, try to find its offset statically. | |||
if (member) { | |||
if (member && member->hasStorage() && !typeDecl->isResilient()) { |
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.
Why do we need this at all? Can we use mirrors to find the offset all the time? It should still work
Avoid going to IRGen with a resilient type to avoid crashing. This is tested in lldb. <rdar://problem/45049259>
Please test with following PR: @swift-ci please test |
Build failed |
Build failed |
@swift-ci please test linux |
Avoid going to IRGen with a resilient type to avoid crashing.
This is tested in lldb.
rdar://problem/45049259