Skip to content

[compiler-rt][RISCV] Initialize length only when __init_riscv_feature… #115449

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kito-cheng
Copy link
Member

…_bits success

That could give us a simple way to detect __init_riscv_feature_bits got fail.

See also riscv-non-isa/riscv-c-api-doc#95

…_bits success

That could give us a simple way to detect `__init_riscv_feature_bits`
got fail.

See also riscv-non-isa/riscv-c-api-doc#95
Comment on lines +370 to +371
__riscv_feature_bits.length = RISCV_FEATURE_BITS_LENGTH;
__riscv_vendor_feature_bits.length = RISCV_VENDOR_FEATURE_BITS_LENGTH;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This would work, but it might be more obvious if this was moved into initRISCVFeature, maybe where the other fields in the structure are being set?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants