Skip to content

[flang] Do not stop on mismatched DATA substring length #69336

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
Oct 23, 2023

Conversation

jeanPerier
Copy link
Contributor

https://reviews.llvm.org/D143819 turned mismatched DATA substring from a crash into a warning. However, the resulting DATA was incorrect when there were subsequent DATA values after the mismatch because the DATA to init conversion stopped. This change let the DATA to init continue.

I added a LengthMismatch tag instead of using SizeMismatch because the other situation where SizeMismatch is returned seem like bug situations to me (the DATA value is dropped and the offset is not advanced), so I did not want to continue DATA processing in these cases.

https://reviews.llvm.org/D143819 turned mismatched DATA substring from
a crash into a warning. However, the resulting DATA was incorrect when
there were subsequent DATA values after the mismatch because the DATA
to init conversion stopped. This change let the DATA to init continue.

I added a LengthMismatch tag instead of using SizeMismatch because the
other situation where SizeMismatch is returned seem like bug situations
to me (the DATA value is dropped and the offset is not advanced), so I
did not want to continue DATA processing in these cases.
@jeanPerier jeanPerier merged commit ab261eb into llvm:main Oct 23, 2023
@jeanPerier jeanPerier deleted the jpr-fix-bad-char-data-toinit branch October 23, 2023 06:54
Guzhu-AMD pushed a commit to GPUOpen-Drivers/llvm-project that referenced this pull request Oct 26, 2023
Local branch amd-gfx 716677f Merged main:1e43975652e5 into amd-gfx:0f5dcae1ff2f
Remote branch main ab261eb [flang] Do not stop on mismatched DATA substring length (llvm#69336)
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.

2 participants