Skip to content

[CSSolver] Properly record opened pack expansion types #79776

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 Mar 4, 2025

This is a bug which leads to accumulation of data in the constraint system even though most of it is out of scope.

@xedin xedin marked this pull request as ready for review March 4, 2025 22:47
@xedin xedin requested review from hborla and slavapestov as code owners March 4, 2025 22:47
@xedin
Copy link
Contributor Author

xedin commented Mar 4, 2025

@swift-ci please smoke test

@xedin xedin changed the title [CSSolver] Property record opened pack expansion types [CSSolver] Properly record opened pack expansion types Mar 4, 2025
This bug leads to accumulation of data in the constraint
system even though most of it is out of scope.
@xedin xedin force-pushed the fix-recording-of-opened-pack-expansions-in-trail branch from 3c17e05 to effc468 Compare March 4, 2025 22:48
@@ -318,7 +318,7 @@ Type ConstraintSystem::openPackExpansionType(PackExpansionType *expansion,
expansionVar, openedPackExpansion,
expansionLoc));

OpenedPackExpansionTypes[openedPackExpansion] = expansionVar;
recordOpenedPackExpansionType(openedPackExpansion, expansionVar);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops!

@xedin
Copy link
Contributor Author

xedin commented Mar 5, 2025

@swift-ci please smoke test

@xedin xedin merged commit 4a646b4 into swiftlang:main Mar 5, 2025
3 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.

2 participants