-
Notifications
You must be signed in to change notification settings - Fork 10.6k
[CSGen] Mark visitDynamicMemberRefExpr as unreachable to match ExprRewriter and update SanitizeExpr to handle them #15627
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
|
@swift-ci please test |
c79d7e7 to
59db0ca
Compare
|
@swift-ci please test |
|
Build failed |
|
Build failed |
xedin
left a comment
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.
LGTM, thanks!
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.
Ah actually this has to use mock-sdk as an option, can you please fix?
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, sure. Like below?
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -typecheck %s -verify
// REQUIRES: objc_interop
import Foundation
...
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.
Yes! Sorry U didn’t notice it right away...
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.
No worries - thanks for reviewing it! I'll update shortly.
…writer and update SanitizeExpr to handle them We were hitting an unreachable in visitDynamicMemberExpr in ExprRewriter when re-typechecking during a salvage. Check for these earlier (in CSGen) and update SanitizeExpr to handle them. Resolves rdar://problem/39055736
59db0ca to
0145439
Compare
|
@swift-ci please test and merge |
|
@swift-ci please test |
|
Build failed |
|
Build failed |
We were hitting an unreachable in
visitDynamicMemberRefExprinExprRewriterwhen re-typechecking within salvage. Check for these earlier (in CSGen) and update SanitizeExpr to handle them.