-
Notifications
You must be signed in to change notification settings - Fork 10.5k
SILParser: Fix for removal of parse-time name lookup #33922
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
SILParser: Fix for removal of parse-time name lookup #33922
Conversation
When parse-time lookup is disabled, we can't rely on the parser binding IdentTypeReprs that name generic parameters, so we do it in type resolution by having the SIL parser supply a GenericParamList.
@swift-ci Please smoke test |
622e064
to
42ec069
Compare
@swift-ci Please smoke test |
1 similar comment
@swift-ci Please smoke test |
lib/Sema/TypeCheckType.cpp
Outdated
for (auto &fieldRepr : repr->getFields()) { | ||
fieldRepr.getFieldType()->dump(); |
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.
Remnants of a debug session?
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, thank you!
42ec069
to
dbdbbff
Compare
@swift-ci Please test |
1 similar comment
@swift-ci Please test |
Build failed |
@swift-ci Please smoke test Linux |
1 similar comment
@swift-ci Please smoke test Linux |
The SIL parser parses "dismebodied"
GenericParamList
s that are not associated with aDecl
, and do not appear in the ASTScope tree. The parser would bindIdentTypeRepr
s that referenced these generic parameter lists using parse-time lookup.In order to make this work when parse-time lookup is disabled, we have to plumb
GenericParamList
s through the SIL parser in various places, and also teach Sema'sresolveType()
to handle them.