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

auto-sync BitCastStdArray.py: Transform to union instead #2257

Merged
merged 2 commits into from
Jan 24, 2024

Conversation

kazarmy
Copy link
Contributor

@kazarmy kazarmy commented Jan 22, 2024

This pr transforms bit_cast<std::array<...>>(...) into a union instead because as per #2237 the current transform violates C strict aliasing rules thus causing optimization issues.


git grep 'bit_cast.*<.*array' in llvm-capstone's llvm/lib/Target subtree was used to find transform targets.

@github-actions github-actions bot added the AArch64 Arch label Jan 22, 2024
@kazarmy kazarmy marked this pull request as ready for review January 22, 2024 11:50
@kabeor
Copy link
Member

kabeor commented Jan 24, 2024

Cool

@kabeor kabeor merged commit cb2b879 into capstone-engine:next Jan 24, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants