Skip to content

Conversation

tshortli
Copy link
Contributor

#76621 caused a regression by skipping the AST nodes nested under defer blocks. The node associated with a defer block is implicit because it is a kind of closure context synthesized by the compiler. However, the nodes it contains are not implicit and so they must be visited by the TypeRefinementContextBuilder.

Resolves rdar://139012152.

@tshortli
Copy link
Contributor Author

@swift-ci please smoke test

@tshortli tshortli enabled auto-merge October 31, 2024 23:30
@tshortli
Copy link
Contributor Author

tshortli commented Nov 1, 2024

@swift-ci please smoke test Windows

swiftlang#76621 caused a regression by skipping
the AST nodes nested under `defer` blocks. The node associated with a `defer`
block is implicit because it is a kind of closure context synthesized by the
compiler. However, the nodes it contains are not implicit and so they must be
visited by the `TypeRefinementContextBuilder`.

Resolves rdar://139012152
@tshortli
Copy link
Contributor Author

tshortli commented Nov 1, 2024

@swift-ci please smoke test

@tshortli tshortli merged commit 5e8550e into swiftlang:main Nov 1, 2024
3 checks passed
@tshortli tshortli deleted the defer-availability branch November 5, 2024 23:33
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