This is an archive of the discontinued LLVM Phabricator instance.

[flang] Do not propagate type desc when box type is not polymorphic
ClosedPublic

Authored by clementval on Nov 21 2022, 8:29 AM.

Details

Summary

When the rhs is non-polymorphic the type descriptor should not
be propagated. An error in the EmboxOp verifier was raised in that case.
This patch propagate the type descriptor only if the result type of the
EmboxOp operation is polymorphic.

Diff Detail

Event Timeline

clementval created this revision.Nov 21 2022, 8:29 AM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptNov 21 2022, 8:29 AM
Herald added a subscriber: mehdi_amini. · View Herald Transcript
clementval requested review of this revision.Nov 21 2022, 8:29 AM
PeteSteinfeld accepted this revision.Nov 21 2022, 8:55 AM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Nov 21 2022, 8:55 AM