Skip to content

Requestify whether a decl is an ABI compatible override #27524

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

hamishknight
Copy link
Contributor

This PR adds IsABICompatibleOverrideRequest, which checks if the decl is an override, and if so whether it's ABI compatible with the base. This is then used to replace the logic for computing isValidKeyPathComponent in addition to being used in requiresNewVTableEntry.

I decided not to completely get rid of isValidKeyPathComponent for now, as requiresNewVTableEntry does some additional checks which we don't want to consider (for example, whether the decl is final).

This commit adds `IsABICompatibleOverrideRequest`,
which checks if the decl is an override, and if
so whether it's ABI compatible with the base
This is then usedto replace the logic for
computing  `isValidKeyPathComponent` in addition
to being used in `requiresNewVTableEntry`.
@hamishknight
Copy link
Contributor Author

@swift-ci please smoke test

@hamishknight hamishknight merged commit 013c4f1 into swiftlang:master Oct 4, 2019
@hamishknight hamishknight deleted the i-have-just-one-request branch October 4, 2019 02:09
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