[flang] Handle parent component in user function argument for special cases
authorValentin Clement <clementval@gmail.com>
Mon, 13 Mar 2023 13:08:20 +0000 (06:08 -0700)
committerValentin Clement <clementval@gmail.com>
Mon, 13 Mar 2023 19:48:29 +0000 (20:48 +0100)
commit67318df027ca2a652b0a568769d2ad1dc8fa488b
tree3c8551d0bccffe575ae02ccaaf6660bc019c0a20
parent98481bc723c84c339da40a8e4c70bd7a55e8a840
[flang] Handle parent component in user function argument for special cases

In some cases the argument is already handled by a fir.rebox operation. Just
adapat the type to match the parent component in that case.

Depends on D145928

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