Skip to content

Conversation

@eeckstein
Copy link
Contributor

We cannot do this because we don't know where to insert the compensating release after the propagated partial_apply.
A required strong_retain may have been moved over the partial_apply.
Then we would release the keypath too early.

Fixes a mis-compile
rdar://161321614

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

…es in non-OSSA

We cannot do this because we don't know where to insert the compensating release after the propagated `partial_apply`.
A required `strong_retain` may have been moved over the `partial_apply`.
Then we would release the keypath too early.

Fixes a mis-compile
rdar://161321614
@eeckstein eeckstein force-pushed the fix-constant-capture-propagation branch from 5169a3f to 273874c Compare September 29, 2025 16:42
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein eeckstein merged commit b46eddb into swiftlang:main Sep 30, 2025
3 checks passed
@eeckstein eeckstein deleted the fix-constant-capture-propagation branch September 30, 2025 05:05
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