Skip to content

[6.0][IRGen] Fix alignment for imported C types in CVW #73406

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
May 6, 2024

Conversation

drexin
Copy link
Contributor

@drexin drexin commented May 3, 2024

Explanation: When an imported C type is over or under aligned, we did not use the alignment of the type, but computed the maximum alignment of its components, causing alignment issues in compact value witnesses.
Scope: Compact value witnesses
Original PR: #73405
Risk: Low, only affects compact value witnesses
Testing: Added test that observed the issue before the fix and does not with it.
Issue: rdar://127279770
Reviewer: @mikeash

rdar://127279770

When an imported C type is over or under aligned, we did not use the alignment of the type, but computed the maximum alignment of its components, causing alignment issues in compact value witnesses.
@drexin drexin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels May 3, 2024
@drexin drexin requested a review from a team as a code owner May 3, 2024 00:11
@drexin
Copy link
Contributor Author

drexin commented May 3, 2024

@swift-ci test

@drexin drexin merged commit 1829574 into swiftlang:release/6.0 May 6, 2024
@drexin drexin deleted the wip-127279770-6.0 branch May 6, 2024 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants