Skip to content

[SILGen] TypeWrappers: Support default values in user-defined initializers #61479

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

xedin
Copy link
Contributor

@xedin xedin commented Oct 6, 2022

All of the property initializers are injected as initializations
of individual _storage fields.

@xedin xedin requested a review from hborla October 6, 2022 21:43
@xedin
Copy link
Contributor Author

xedin commented Oct 6, 2022

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Oct 7, 2022

@swift-ci please test Windows platform

1 similar comment
@xedin
Copy link
Contributor Author

xedin commented Oct 7, 2022

@swift-ci please test Windows platform

xedin added 4 commits October 7, 2022 17:35
…Storage

It was done in `maybeAddTypeWrapperDefaultArg` before because
user-defined initializers weren't supported but now property
initializers need to be subsumed earlier to make sure that
SILGen doesn't try to emit them into user-defined initializers.
…izers

All of the property initializers are injected as initializations
of individual `_storage` fields.
@xedin xedin force-pushed the type-wrappers-init-values-in-user-defined-inits branch from ee99dc8 to 7dfad23 Compare October 8, 2022 00:36
@xedin
Copy link
Contributor Author

xedin commented Oct 8, 2022

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented Oct 8, 2022

@swift-ci please test Linux platform

@xedin
Copy link
Contributor Author

xedin commented Oct 10, 2022

@swift-ci please test Windows platform

@xedin
Copy link
Contributor Author

xedin commented Oct 20, 2022

@swift-ci please smoke test

@xedin xedin merged commit 5c8c008 into swiftlang:main Oct 21, 2022
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