Skip to content

[SILGenConstructor] InitAccessors: Make sure that accessed fields are initialized before init accessors #67585

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 2 commits into from
Jul 28, 2023

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 27, 2023

Initializations for all of the fields accessed by init accessor
should be emitted before init accessor property even if they are
declared after it in the source order.

Resolves: rdar://112984795

xedin added 2 commits July 27, 2023 15:22
…into a method

This is a preliminary step in order to enable re-ordering of initializations
when init accessors are involved.
… initialized before init accessors

Initializations for all of the fields accessed by init accessor
should be emitted before init accessor property even if they are
declared after it in the source order.

Resolves: rdar://112984795
@xedin xedin requested a review from hborla July 27, 2023 22:27
@xedin
Copy link
Contributor Author

xedin commented Jul 27, 2023

@swift-ci please test

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.

1 participant