This is an archive of the discontinued LLVM Phabricator instance.

[flang][hlfir] Support type descriptor for initialized character component
ClosedPublic

Authored by jeanPerier on Feb 28 2023, 5:32 AM.

Details

Summary

These compiler generated component descriptor include designators packaged
as CLASS(*) for simplicity. HLFIR hit an assert in an std::get trying to
recover an Expr<SomeChar> while translating the expression type.
Use the dynamic type of the CLASS(*) expr in that case to recover the
compiler length.

Diff Detail

Event Timeline

jeanPerier created this revision.Feb 28 2023, 5:32 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 28 2023, 5:32 AM
jeanPerier requested review of this revision.Feb 28 2023, 5:32 AM
This revision is now accepted and ready to land.Feb 28 2023, 6:13 AM