This is an archive of the discontinued LLVM Phabricator instance.

[flang] Fix for array upper bounds with *
ClosedPublic

Authored by clementval on Jun 30 2022, 1:08 AM.

Details

Summary

Even though the array is declared with '*' upper bounds, it has an
initial value that has a statically known shape. Use the shape from
the type of the initializer when the declared size is '*'.

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

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

Diff Detail

Event Timeline

clementval created this revision.Jun 30 2022, 1:08 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJun 30 2022, 1:08 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Jun 30 2022, 1:08 AM
This revision is now accepted and ready to land.Jun 30 2022, 1:32 AM
This revision was automatically updated to reflect the committed changes.