Skip to content

Conversation

@ahatanaka
Copy link

Evaluate all aggregate compound literals into a temporary and then copy it to the destination if aliasing is possible.

This fixes a latent issue exposed by llvm#154490, where evaluating the RHS directly into the destination could ignore potential aliasing.

rdar://164094548

…be directly evaluated into the destination even when it might alias the source (llvm#167344)

Evaluate all aggregate compound literals into a temporary and then copy
it to the destination if aliasing is possible.

This fixes a latent issue exposed by llvm#154490, where evaluating the RHS
directly into the destination could ignore potential aliasing.

rdar://164094548
@ahatanaka
Copy link
Author

@swift-ci test

@ahatanaka ahatanaka merged commit 644ff43 into stable/21.x Nov 18, 2025
3 checks passed
@ahatanaka ahatanaka deleted the nontrivial-c-compound-literal branch November 18, 2025 17:22
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.

4 participants