Skip to content

[Runtime] Allow overrides or swift_getAssociated(Type|Conformance)Witness #20592

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

Conversation

DougGregor
Copy link
Member

Split these two functions into a fast path (for the cached case) and a slow
path. Make the slow path overridable, so we can patch it in the future if
needed.

…ness.

Split these two functions into a fast path (for the cached case) and a slow
path. Make the slow path overridable, so we can patch it in the future if
needed.
@DougGregor DougGregor requested a review from mikeash November 15, 2018 06:20
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

Copy link
Contributor

@mikeash mikeash left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good! Can you add tests for these to unittests/runtime/CompatibilityOverride.cpp? Hopefully simple, the test doesn't need to actually pass sensible parameters, it just ensures that the override gets called when present.

This is probably not the right time for it, but I wonder if we can generate the tests themselves from the .def file too....

@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

1 similar comment
@DougGregor
Copy link
Member Author

@swift-ci please smoke test and merge

@DougGregor
Copy link
Member Author

@mikeash added!

@mikeash
Copy link
Contributor

mikeash commented Nov 15, 2018

@DougGregor <3

@swift-ci swift-ci merged commit 9052579 into swiftlang:master Nov 15, 2018
@DougGregor DougGregor deleted the runtime-get-assoc-typeconformance-override branch November 15, 2018 19:10
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.

3 participants