Skip to content

[SILGen] Fix the type of closure thunks that are passed const T& #83426

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Xazax-hun
Copy link
Contributor

This PR is another attempt at landing #76903. The changes compared to the original PR:

  • Instead of increasing the size of SILDeclRef, store the necessary type information in the conversion AST nodes.
  • The PR above introduced a crash during indexing system modules that references foreign types coming from modules imported as implementation only. These entities are implementation details so they do not need to be included during serialization. This PR adds a test and adds logic to exclude such clang types in the serialization process.

rdar://131321096&141786724

@Xazax-hun Xazax-hun force-pushed the const-ref-crash-take-2 branch from 41104a5 to 0f707a9 Compare July 30, 2025 13:59
…ce structs

This PR is another attempt at landing swiftlang#76903. The changes compared to
the original PR:
* Instead of increasing the size of SILDeclRef, store the necessary type
  information in the conversion AST nodes.
* The PR above introduced a crash during indexing system modules that
  references foreign types coming from modules imported as
  implementation only. These entities are implementation details so they
  do not need to be included during serialization. This PR adds a test
  and adds logic to exclude such clang types in the serialization
  process.

rdar://131321096&141786724
@Xazax-hun Xazax-hun force-pushed the const-ref-crash-take-2 branch from 0f707a9 to 4fdef8b Compare July 30, 2025 14:08
@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test

@Xazax-hun
Copy link
Contributor Author

@swift-ci please smoke test macOS

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