Polymorphic entities are always emboxed. This patch
handles host association of polyrmophic entities as passed object.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Other than the nit about the edge case, looks good to me.
flang/lib/Lower/HostAssociations.cpp | ||
---|---|---|
248 | Can you add a TODO if this is a polymorphic array with non default lower bounds ? I think this code would not handle it correctly since the fir.class may not contain the lower bound values (and cares needs to be taken to shoe them in if the fir.class is OPTIONAL). HLFIR variables will probably help because the lower bound "shoe-horning" will be handled in the hlfir.declare. |
Can you add a TODO if this is a polymorphic array with non default lower bounds ?
I think this code would not handle it correctly since the fir.class may not contain the lower bound values (and cares needs to be taken to shoe them in if the fir.class is OPTIONAL). HLFIR variables will probably help because the lower bound "shoe-horning" will be handled in the hlfir.declare.