This is an archive of the discontinued LLVM Phabricator instance.

[flang] Use fir.rebox for tbp fir.dispatch call with allocatable or pointer
ClosedPublic

Authored by clementval on Oct 11 2022, 2:25 AM.

Details

Summary

Polymorphic entities with allocatable or pointer attribute cannot be passed
directly as passed-object when the type-bound procedure is expecting a
simply dummy polymorphic entity. Use fir.rebox to adapt the fir.class box
to the tbp type.

Depends on D135649

Diff Detail

Event Timeline

clementval created this revision.Oct 11 2022, 2:25 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 11 2022, 2:25 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Oct 11 2022, 2:25 AM
This revision is now accepted and ready to land.Oct 11 2022, 3:42 AM

clang-format