Skip to content

Serialize SIL for default argument generators in Swift 4 mode #11937

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

slavapestov
Copy link
Contributor

Progress on rdar://problem/33767513.

@slavapestov slavapestov force-pushed the serialize-default-argument-generators branch from fe56610 to 47b11b4 Compare September 15, 2017 23:20
…unctionDecl

Previously we stored this inside each default argument
initializer context. This was overkill, because it is
the same for all default arguments in a single function,
and also insufficient, because initializer contexts are
not serialized and thus not available in SILGen when
the function is in a different module.

Instead store it directly inside the function and
serialize it.

NFC for now, since SILGen isn't using this yet.
@slavapestov slavapestov force-pushed the serialize-default-argument-generators branch from 47b11b4 to d736501 Compare September 15, 2017 23:20
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov slavapestov changed the title [WIP] Serialize SIL for default argument generators in Swift 4 mode Serialize SIL for default argument generators in Swift 4 mode Sep 15, 2017
@slavapestov slavapestov merged commit 94c596e into swiftlang:master Sep 16, 2017
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