Skip to content

Fixup __shared propagation #11275

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 31, 2017
Merged

Fixup __shared propagation #11275

merged 1 commit into from
Jul 31, 2017

Conversation

CodaFi
Copy link
Contributor

@CodaFi CodaFi commented Jul 31, 2017

Two minor fixes that affect propagation of the __shared bit

  • Type canonicalization now preserves __shared. This could
    manifest as invalid references to SILDeclRefs with the
    wrong signature.

  • Function type lowering dispatches __shared tuples that are
    not valid substitution targets through the @owned path in all
    cases.

This has the added benefit of lowering __shared closures @guaranteed @callee_owned.

@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 31, 2017

@swift-ci please smoke test and merge

Two minor fixes that affect propagation of the __shared bit

* Type canonicalization now preserves __shared.  This could
manifest as invalid references to SILDeclRefs with the
wrong signature.

* Function type lowering dispatches __shared tuples that are
not valid substitution targets through the @owned path in all
cases.
@CodaFi CodaFi changed the title [NFC] Fixup __shared propagation Fixup __shared propagation Jul 31, 2017
@CodaFi
Copy link
Contributor Author

CodaFi commented Jul 31, 2017

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 5528999 into swiftlang:master Jul 31, 2017
@CodaFi CodaFi deleted the canonized branch July 31, 2017 23:09
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