Skip to content

Conversation

@meg-gupta
Copy link
Contributor

We may see undef closure captures in ClosureLifetimeFixup since it is a mandatory pass that runs on invalid code as well.

This could sometimes hang the compiler while running insertDeallocOfCapturedArguments in release builds.

This change adds a bailout when we see an undef closure capture to avoid running into this issue.

We may see undef closure captures in ClosureLifetimeFixup since
it is a mandatory pass that runs on invalid code as well.

This could sometimes hang the compiler while running `insertDeallocOfCapturedArguments`
in release builds.

This change adds a bailout when we see an undef closure capture to avoid running into this issue.
@meg-gupta meg-gupta requested a review from eeckstein as a code owner December 11, 2025 20:16
@meg-gupta
Copy link
Contributor Author

@swift-ci test

@meg-gupta meg-gupta requested a review from atrick December 11, 2025 20:17
@meg-gupta meg-gupta enabled auto-merge December 11, 2025 20:23
@meg-gupta
Copy link
Contributor Author

@swift-ci test windows platform

@meg-gupta meg-gupta merged commit 96cd2e1 into swiftlang:main Dec 13, 2025
5 checks passed
Copy link
Contributor

@atrick atrick left a comment

Choose a reason for hiding this comment

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

LGTM, Thanks

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.

3 participants