Skip to content

Emit actor hop as part of call to the getter.#59927

Merged
DougGregor merged 1 commit intoswiftlang:release/5.7from
DougGregor:sink-actor-hop-for-get-access-5.7
Jul 7, 2022
Merged

Emit actor hop as part of call to the getter.#59927
DougGregor merged 1 commit intoswiftlang:release/5.7from
DougGregor:sink-actor-hop-for-get-access-5.7

Conversation

@DougGregor
Copy link
Copy Markdown
Member

When emitting a call to the getter for storage, emit the actor hop (and
hop back) as part of the call itself, rather than around the whole
initialization. This address a bug involving initialization with an
optional binding in an if let, where the hop-back would only be
performed on the non-nil branch.

Fixes rdar://96487805 / FB10562197

When emitting a call to the getter for storage, emit the actor hop (and
hop back) as part of the call itself, rather than around the whole
initialization. This address a bug involving initialization with an
optional binding in an `if let`, where the hop-back would only be
performed on the non-nil branch.

Fixes rdar://96487805 / FB10562197
@DougGregor DougGregor requested a review from a team as a code owner July 6, 2022 20:39
@DougGregor
Copy link
Copy Markdown
Member Author

@swift-ci please test

@DougGregor DougGregor merged commit a14f05e into swiftlang:release/5.7 Jul 7, 2022
@DougGregor DougGregor deleted the sink-actor-hop-for-get-access-5.7 branch July 7, 2022 02: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.

2 participants