Skip to content

Pack expansion closures, part 5 #73685

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

@slavapestov slavapestov commented May 16, 2024

Follow-up to #73570. More plumbing to convert between local and primary archetypes in the various places its needed. There is only one more PR remaining after this, which lands the SILGen local archetype transform, as well as end-to-end tests for all of this.

…nresolved local archetypes

We maintained a counter of the number of pending local archetypes
that had not yet been defined. However, if an instruction that
references a pending local archetype was deleted before the
local archetype was defined, the counter would never decrement.

Before reading the counter value, garbage collect any inserted
placeholders that have no uses. These correspond to pending
local archetypes that are no longer in use and will never be
defined.
@slavapestov slavapestov force-pushed the pack-expansion-closures-part-5 branch 2 times, most recently from 94b6c66 to cf27663 Compare May 17, 2024 03:07
@slavapestov slavapestov marked this pull request as ready for review May 17, 2024 03:07
@slavapestov slavapestov requested review from hborla and xedin as code owners May 17, 2024 03:07
@slavapestov
Copy link
Contributor Author

@swift-ci Please test

@slavapestov
Copy link
Contributor Author

@swift-ci Please test source compatibility

@slavapestov slavapestov merged commit 9cf4d61 into swiftlang:main May 17, 2024
7 checks passed
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