This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix bug in character casting. Add missing sext/trunc in code gen.
ClosedPublic

Authored by clementval on Jun 17 2022, 6:01 AM.

Details

Summary

This patch is part of the upstreaming effort from fir-dev branch.
It also ensures all descriptors created inline complies with LBOUND
requirement that the lower bound is 1 when the related dimension
extent is zero.

This patch is part of the upstreaming effort from fir-dev branch.

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Co-authored-by: Jean Perier <jperier@nvidia.com>

Diff Detail

Event Timeline

clementval created this revision.Jun 17 2022, 6:01 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 17 2022, 6:01 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Jun 17 2022, 6:01 AM
PeteSteinfeld accepted this revision.Jun 17 2022, 6:43 AM

All builds and tests correctly and looks good.

Thanks, Valentin!

This revision is now accepted and ready to land.Jun 17 2022, 6:43 AM
jeanPerier accepted this revision.Jun 17 2022, 6:58 AM