This is an archive of the discontinued LLVM Phabricator instance.

[flang] Make sure the length is propagated when emboxing a char to unlimited polymoprhic box
ClosedPublic

Authored by clementval on Feb 21 2023, 7:13 AM.

Details

Summary

When passing a character with unknown length to a subroutine expecting
an unlimited polymorphic pointer, a new descriptor is created. The
fir.embox operation needs to carry over the length from the character
to be passed correctly.

Diff Detail

Event Timeline

clementval created this revision.Feb 21 2023, 7:13 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptFeb 21 2023, 7:13 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Feb 21 2023, 7:13 AM
PeteSteinfeld accepted this revision.Feb 21 2023, 7:35 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Feb 21 2023, 7:35 AM