Skip to content

Conversation

eeckstein
Copy link
Contributor

A dead destructure_struct with an owned argument can appear for a non-copyable or non-escapable struct which has only trivial elements. The instruction is not trivially dead because it ends the lifetime of its operand.

Fixes an ownership verification error.

…uct` instructions

A dead `destructure_struct` with an owned argument can appear for a non-copyable or non-escapable struct which has only trivial elements.
The instruction is not trivially dead because it ends the lifetime of its operand.

Fixes an ownership verification error.
@eeckstein
Copy link
Contributor Author

@swift-ci smoke test

@eeckstein
Copy link
Contributor Author

@swift-ci benchmark

@eeckstein
Copy link
Contributor Author

@swift-ci smoke test macos

@eeckstein eeckstein merged commit e677282 into swiftlang:main Oct 8, 2025
4 checks passed
@eeckstein eeckstein deleted the fix-sil-combine branch October 8, 2025 17:27
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