Skip to content

Conversation

eeckstein
Copy link
Contributor

@eeckstein eeckstein commented Oct 3, 2025

This was a wrong use of the InstructionDeleter.
When replacing a mark_dependence with a new one the old one has to be deleted without fixing its lifetime. Otherwise destroy_value instructions are inserted, which is obviously wrong.

Fixes a SIL ownership verification error.
rdar://161831308

@eeckstein eeckstein requested a review from atrick October 3, 2025 08:41
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

…ctions

This was a wrong use of the InstructionDeleter.
When replacing a mark_dependence with a new one the old one has to be deleted _without_ fixing its lifetime.
Otherwise destroy_value instructions are inserted, which is obviously wrong.

Fixes a SIL ownership verification error.
rdar://161831308
@eeckstein eeckstein force-pushed the fix-dead-alloc-elimination branch from 789a918 to 214be2d Compare October 3, 2025 08:48
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test macos

1 similar comment
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test macos

@eeckstein eeckstein merged commit 8edfd9c into swiftlang:main Oct 4, 2025
3 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.

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.

2 participants