This patch updates the fir.convert operation's verifier to allow
conversion from !fir.box<!fir.type<T>> to !fir.class<!fir.type<T>>.
Other conversion involving fir.class are likely needed but will
be added when lowering needs them.
Paths
| Differential D135445
[flang] Allow conversion from boxed derived type to fir.class ClosedPublic Authored by clementval on Oct 7 2022, 6:55 AM.
Details Summary This patch updates the fir.convert operation's verifier to allow Other conversion involving fir.class are likely needed but will
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 7 2022, 7:27 AM Closed by commit rG0cf70a33f296: [flang] Allow conversion from boxed derived type to fir.class (authored by clementval). · Explain WhyOct 9 2022, 11:59 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 466437 flang/include/flang/Optimizer/Dialect/FIRType.h
flang/lib/Optimizer/Dialect/FIROps.cpp
flang/lib/Optimizer/Dialect/FIRType.cpp
flang/test/Lower/polymorphic.f90
flang/unittests/Optimizer/FIRTypesTest.cpp
|