Skip to content

[MoveOnlyAddressChecker] Fix empty deiniting struct representation. #73174

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
Apr 22, 2024

Conversation

nate-chandler
Copy link
Contributor

An empty struct without a deinit gets a single bit which is used to track the struct's liveness. Previously, an empty struct with a deinit also only got a single bit. Consequently, when discarding the struct (i.e. dropping the deinit), there was no bit left to represent the struct. This resulted in a failure to track liveness for the value.

rdar://126863003

An empty struct without a deinit gets a single bit which is used to
track the struct's liveness.  Previously, an empty struct with a deinit
also only got a single bit.  Consequently, when discarding the struct
(i.e. dropping the deinit), there was no bit left to represent the
struct.  This resulted in a failure to track liveness for the value.

rdar://126863003
@nate-chandler nate-chandler requested a review from kavon as a code owner April 22, 2024 15:43
@nate-chandler nate-chandler requested a review from jckarter April 22, 2024 15:43
@nate-chandler
Copy link
Contributor Author

@swift-ci please test

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