This is an archive of the discontinued LLVM Phabricator instance.

[flang] Make uninitialized allocatable components explicitly NULL() in structure constructors
ClosedPublic

Authored by klausler on Mar 7 2022, 1:54 PM.

Details

Summary

When a structure constructor does not initialize an allocatable component,
ensure that the typed expression representation contains an explicit
NULL() for the component. Expression semantics already copies default
initialized expressions for nonallocatable components into structure
constructors. This change is expected to simplify lowering.

Diff Detail

Event Timeline

klausler created this revision.Mar 7 2022, 1:54 PM
Herald added a project: Restricted Project. · View Herald Transcript
Herald added a subscriber: jdoerfert. · View Herald Transcript
klausler requested review of this revision.Mar 7 2022, 1:54 PM
vdonaldson accepted this revision.Mar 7 2022, 3:40 PM
This revision is now accepted and ready to land.Mar 7 2022, 3:40 PM
Herald added a project: Restricted Project. · View Herald TranscriptMar 7 2022, 4:41 PM