Skip to content

[flang] Match the length size in comparison (NFC) #78302

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
Jan 18, 2024

Conversation

madanial0
Copy link
Contributor

The template function call CheckDescriptorEqInt((exitStat.get(), 127) is deduced to have INT_T equal to std::int32_t instead of std::int64_t, but the length descriptor points to a 64-byte storage. The comparison does not work in a big endian.

@madanial0 madanial0 added the flang Flang issues not falling into any other category label Jan 16, 2024
@madanial0 madanial0 self-assigned this Jan 16, 2024
Copy link
Collaborator

@kkwli kkwli left a comment

Choose a reason for hiding this comment

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

LG

Copy link
Contributor

@yiwu0b11 yiwu0b11 left a comment

Choose a reason for hiding this comment

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

Thanks for this fix, do you mind changing the other CheckDescriptorEqInt(xxx.get(), intVal) in the CommandTest.cpp as well?

yiwu0b11 added a commit to yiwu0b11/llvm-project that referenced this pull request Jan 17, 2024
@madanial0 madanial0 merged commit 87ac65a into llvm:main Jan 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants