This is an archive of the discontinued LLVM Phabricator instance.

[flang] Lower allocate for polymorphic pointer
ClosedPublic

Authored by clementval on Oct 27 2022, 1:33 AM.

Details

Summary

Lowering of allocate statement for polymoprhic pointers is a bit
different than for allocatables. A call to PointerNullifyDerived
runtime function is done instead of AllocatableInitDerived.

Diff Detail

Event Timeline

clementval created this revision.Oct 27 2022, 1:33 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 27 2022, 1:33 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Oct 27 2022, 1:33 AM
PeteSteinfeld accepted this revision.Oct 27 2022, 10:01 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Oct 27 2022, 10:01 AM
This revision was automatically updated to reflect the committed changes.