This is an archive of the discontinued LLVM Phabricator instance.

[flang] Load fir.ref<fir.class<T>> instead of creating a wrong box
ClosedPublic

Authored by clementval on Mar 14 2023, 12:29 PM.

Details

Summary

When a subroutine has an entry statement, the non-used argument
will be a fir.alloca and result in a fir.ref<fir.class<T>> for
polymorphic entities. In createBox, just load the box instead of
creating a wrong box.

Diff Detail

Event Timeline

clementval created this revision.Mar 14 2023, 12:29 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptMar 14 2023, 12:29 PM
clementval requested review of this revision.Mar 14 2023, 12:29 PM
PeteSteinfeld accepted this revision.Mar 14 2023, 1:00 PM

All builds and tests correctly and looks good.

This revision is now accepted and ready to land.Mar 14 2023, 1:00 PM