Skip to content

Fold dynamic_method into objc_method #12265

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 5 commits into from
Oct 4, 2017

Conversation

slavapestov
Copy link
Contributor

@slavapestov slavapestov commented Oct 4, 2017

Follow-up to #12260. Since dynamic_method and objc_method now have the same IRGen lowering; the only difference remaining is SIL verifier invariants. We can merge the SIL verifier checks together and remove dynamic_method altogether.

The next step here is to refactor SILGen to use objc_method for Objective-C protocol method calls as well, removing the volatile bit from witness_method and simplifying its IRGen lowering.

@slavapestov
Copy link
Contributor Author

@swift-ci Please smoke test

This will allow us to remove dynamic_method, emitting objc_method
in its place. It will also allow objc_method to be used for
Objective-C protocol method calls, with witness_method used
for Swift native protocol method calls only.
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

1 similar comment
@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@DougGregor
Copy link
Member

SwiftyJSON is using _Incrementable. I don't think that's you :)

/Users/buildnode/jenkins/workspace-private/swift-PR-source-compat-suite/project_cache/Kitura/.build/checkouts/SwiftyJSON.git--6955445084174387031/Source/SwiftyJSON.swift:406:26: error: use of undeclared type '_Incrementable'
public struct JSONIndex: _Incrementable, Equatable, Comparable {
^~~~~~~~~~~~~~

@slavapestov slavapestov merged commit b9384f5 into swiftlang:master Oct 4, 2017
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.

2 participants