Skip to content

[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

Merged
merged 1 commit into from
Nov 9, 2018

Conversation

dcci
Copy link
Member

@dcci dcci commented Oct 24, 2018

Avoid going to IRGen with a resilient type to avoid crashing.
This is tested in lldb.

rdar://problem/45049259

@dcci
Copy link
Member Author

dcci commented Oct 24, 2018

Please test with following PR:
apple/swift-lldb#999

@swift-ci Please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 686b393b21a6aef84e365dc3db3d94d5dea3050d

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 686b393b21a6aef84e365dc3db3d94d5dea3050d

@dcci
Copy link
Member Author

dcci commented Oct 25, 2018

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()) {
Copy link
Contributor

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

dcci commented Nov 8, 2018

Please test with following PR:
apple/swift-lldb#999

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Nov 8, 2018

Build failed
Swift Test OS X Platform
Git Sha - 686b393b21a6aef84e365dc3db3d94d5dea3050d

@swift-ci
Copy link
Contributor

swift-ci commented Nov 8, 2018

Build failed
Swift Test Linux Platform
Git Sha - 4f45622

@dcci
Copy link
Member Author

dcci commented Nov 9, 2018

@swift-ci please test linux

@dcci dcci merged commit 41989b9 into swiftlang:master Nov 9, 2018
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.

4 participants