[flang] Handle parent component in user function argument
authorValentin Clement <clementval@gmail.com>
Mon, 13 Mar 2023 19:29:43 +0000 (20:29 +0100)
committerValentin Clement <clementval@gmail.com>
Mon, 13 Mar 2023 19:30:41 +0000 (20:30 +0100)
commit33fbbf88afe55aaf9b94747074c58f442f37fa00
tree391c8854799871b972846dc95d4395d3fdf9418a
parentdde08c9c4856726136b670af6def50d108f3bfc4
[flang] Handle parent component in user function argument

When the argument is a parent component the box needs to
be updated to reflect the correct type. Use `updateBoxForParentComponent`
to update the argument accordingly.

Depends on D145907

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D145928
flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/polymorphic.f90