-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Async CC] Resolve metadata from class instances. #34740
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
[Async CC] Resolve metadata from class instances. #34740
Conversation
@swift-ci please test |
Build failed |
Build failed |
@swift-ci please clean test linux |
@swift-ci please clean test macos |
Build failed |
@swift-ci please clean test linux |
Build failed |
@swift-ci please clean test macos |
907f17e
to
2dde2e7
Compare
@swift-ci please test |
Build failed |
Build failed |
Metadata for an instance of a type is resolved by extracting it from an instance of the class. When doing method lookup for an instance method of a resilient class, the lowered self value was being obtained from the list of arguments directly by indexing. That does not apply to async functions where self is embedded within the async context. Here, the self parameter is extracted from the async context so that the metadata can in turn be extracted from it. rdar://problem/71260862
2dde2e7
to
e276472
Compare
@swift-ci please test |
Metadata for an instance of a type is resolved by extracting it from an instance of the class. When doing method lookup for an instance method of a resilient class, the lowered self value was being obtained from the list of arguments directly by indexing. That does not apply to async functions where self is embedded within the async context. Here, the self parameter is extracted from the async context so that the metadata can in turn be extracted from it.
rdar://problem/71260862