This is an archive of the discontinued LLVM Phabricator instance.

[flang][runtime] Fix padding in CHARACTER(4) assignments.
ClosedPublic

Authored by jeanPerier on Apr 24 2023, 6:40 AM.

Details

Summary

One piece of pointer arithmetic was adding the number of bytes instead
of the number of characters. This caused failures in CHARACTER(KIND>1)
that required padding.
This was caught using HLFIR that currently uses the runtime for array
assignment where the current lowering does everything inline.

Diff Detail

Event Timeline

jeanPerier created this revision.Apr 24 2023, 6:40 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 24 2023, 6:40 AM
jeanPerier requested review of this revision.Apr 24 2023, 6:40 AM
vzakhari accepted this revision.Apr 24 2023, 8:56 AM

Thank you!

This revision is now accepted and ready to land.Apr 24 2023, 8:56 AM
klausler accepted this revision.Apr 24 2023, 9:07 AM