Skip to content

[Type checker] Move forcing of overridden/@objc/dynamic into finalizeType(). #18101

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 1 commit into from
Jul 20, 2018

Conversation

DougGregor
Copy link
Member

As part of factoring overridden decls/@objc/dynamic computation into
requests for the request-evaluator, I forced computation of this
information as part of requestMemberLayout. This is incorrect:
requestMemberLayout() is meant only to trigger finalization of the
enclosing class, which is responsible for making sure the type can be
properly laid out. Move the newly-introduced forcing logic into
finalizeType() where it belongs.

Thanks to @slavapestov for describing the intent here.

…Type().

As part of factoring overridden decls/@objc/dynamic computation into
requests for the request-evaluator, I forced computation of this
information as part of requestMemberLayout. This is incorrect:
requestMemberLayout() is meant only to trigger finalization of the
enclosing class, which is responsible for making sure the type can be
properly laid out. Move the newly-introduced forcing logic into
finalizeType() where it belongs.

Thanks to @slavapestov for describing the intent here.
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please test source compatibility

@DougGregor DougGregor requested a review from slavapestov July 20, 2018 03:42
Copy link
Contributor

@slavapestov slavapestov left a comment

Choose a reason for hiding this comment

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

Thanks!

@DougGregor DougGregor merged commit 6da8c05 into swiftlang:master Jul 20, 2018
@DougGregor DougGregor deleted the finalize-type-force-layout branch July 20, 2018 05:26
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