This is an archive of the discontinued LLVM Phabricator instance.

[flang] Handle NULL(mold) used in initializer region
ClosedPublic

Authored by clementval on Sep 23 2022, 11:02 AM.

Details

Summary

NULL intrinsic with a MOLD argument can be used in a type constructor.
This patch handles this use case with a specific lowering that create
an unallocated box with the MOLD type.

Diff Detail

Event Timeline

clementval created this revision.Sep 23 2022, 11:02 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptSep 23 2022, 11:02 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Sep 23 2022, 11:02 AM
PeteSteinfeld accepted this revision.Sep 23 2022, 12:25 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Sep 23 2022, 12:25 PM
This revision was automatically updated to reflect the committed changes.