Skip to content

[3.1] Sema: "super" calls to non-ObjC extension methods must be statically dispatched. #7172

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

Conversation

jckarter
Copy link
Contributor

@jckarter jckarter commented Feb 1, 2017

Explanation: SILGen attempted to improperly emit a vtable dispatch when a subclass of an ObjC class attempted to super-invoke an extension method from another module that wasn't @objc.

Scope: Affects users trying to super.-invoke methods from the SDK overlays in their custom subclasses of framework classes.

Issue: rdar://problem/30030229

Risk: Low

Testing: Swift CI, test case from Radar

…dispatched.

They currently can't ever show up in the vtable, so we must emit static calls to them. Fixes rdar://problem/30030229.
@jckarter
Copy link
Contributor Author

jckarter commented Feb 1, 2017

@swift-ci Please test

@ematejska ematejska merged commit a42cee9 into swiftlang:swift-3.1-branch Feb 1, 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