Skip to content

[6.2] [Sema] Avoid folding sequences multiple times for completion #83036

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 2 commits into from
Jul 15, 2025

Conversation

hamishknight
Copy link
Contributor

@hamishknight hamishknight commented Jul 14, 2025

6.2 cherry-pick of #83034, made less risky for 6.2

Completion can end up calling into pre-checking multiple times in
certain cases, make sure we don't attempt to fold a SequenceExpr
multiple times since its original AST is in a broken state
post-folding. Instead, just return the already-folded expression.

rdar://133717866
Revert assertion changes and flip the condition to only apply when
doing completion.
@hamishknight hamishknight requested a review from bnbarham July 14, 2025 16:54
@hamishknight hamishknight requested a review from a team as a code owner July 14, 2025 16:54
@hamishknight hamishknight added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jul 14, 2025
@hamishknight
Copy link
Contributor Author

@swift-ci please test

@hamishknight hamishknight requested a review from hborla July 14, 2025 18:36
@hamishknight hamishknight merged commit 234a415 into swiftlang:release/6.2 Jul 15, 2025
5 checks passed
@hamishknight hamishknight deleted the origami-6.2 branch July 15, 2025 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants