Skip to content

Fix handling of large alignments in write_cvalue_maybe_transmute #1521

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
Jul 21, 2024

Conversation

beetrees
Copy link
Contributor

The as cast that was used previously would lead to the alignment being truncated such that an alignment of zero would be passed to emit_small_memory_copy.

@bjorn3 bjorn3 merged commit 4fb3c4b into rust-lang:master Jul 21, 2024
20 checks passed
@bjorn3
Copy link
Member

bjorn3 commented Jul 21, 2024

This doesn't currently have any effect as types with larger than 128 byte alignment are emitted as memcpy anyway, which doesn't use the alignment hint. It could have an effect in the future, so I merged it anyway.

@beetrees beetrees deleted the fix-align branch July 21, 2024 11:45
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