Skip to content
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

Minor follow-up improvements to PR #19227 for aro translate-c #19988

Merged

Conversation

f-cozzocrea
Copy link
Contributor

Adds a few minor improvements that didn't make it into #19227. Namely:

  1. Don't calculate head_field_alignment if it isn't used (ie. if there aren't any alignment attributes).
  2. Doc comment added for alignmentForField() explaining why it's needed. Also removed specific references to u29 since it seems that Zig's alignment range may change in the future.

@andrewrk
Copy link
Member

Thanks for the follow-up!

@andrewrk andrewrk merged commit d67d9fa into ziglang:master May 20, 2024
10 checks passed
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.

None yet

2 participants