Skip to content

[6.0] Handle startAsyncLetWithLocalBuffer in exclusivity diagnostics. #74059

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 1 commit into from
Jun 6, 2024

Conversation

atrick
Copy link
Contributor

@atrick atrick commented May 31, 2024

Fixes rdar://128981120 (Crash when inout arg captured through some closures? (llvm::all_of(apply->getUses(), hasExpectedUsesOfNoEscapePartialApply) && "noescape partial_apply has unexpected use!"))

(cherry picked from commit 1be703c)

--- CCC ---

Explanation: Fix a compiler assert in exclusivity diagnostics.

Scope: The assert is in verification that tests completeness of the diagnostic. It only affects asserts builds of the compiler.

Radar/SR Issue: rdar://128981120 (Crash when inout arg captured through some closures? (llvm::all_of(apply->getUses(), hasExpectedUsesOfNoEscapePartialApply) && "noescape partial_apply has unexpected use!"))

main PR: #74029

Risk: None.

Testing: Unit test added.

Reviewer: @nate-chandler

Fixes rdar://128981120 (Crash when inout arg captured through some
closures? (llvm::all_of(apply->getUses(), hasExpectedUsesOfNoEscapePartialApply)
&& "noescape partial_apply has unexpected use!"))

(cherry picked from commit 1be703c)
@atrick atrick added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels May 31, 2024
@atrick atrick requested a review from nate-chandler May 31, 2024 19:26
@atrick atrick requested a review from a team as a code owner May 31, 2024 19:26
@atrick
Copy link
Contributor Author

atrick commented May 31, 2024

@swift-ci test

@atrick atrick requested a review from tbkka May 31, 2024 19:27
Copy link
Contributor

@nate-chandler nate-chandler left a comment

Choose a reason for hiding this comment

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

LGTM

@atrick
Copy link
Contributor Author

atrick commented Jun 1, 2024

@tbkka needs approval

@atrick atrick merged commit 6e63a5f into swiftlang:release/6.0 Jun 6, 2024
5 checks passed
@atrick atrick deleted the 60-fix-access-diag branch June 6, 2024 16:27
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.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants