[flang] Handle parent component in select type
authorValentin Clement <clementval@gmail.com>
Mon, 6 Mar 2023 13:09:38 +0000 (14:09 +0100)
committerValentin Clement <clementval@gmail.com>
Mon, 6 Mar 2023 13:11:37 +0000 (14:11 +0100)
commit33a13f300bd6fa05b306146e54c2d7d2dd600aae
treeebfa402131e501f681ec7d52e703760a7fbdac84
parent7eb36f5d87a67d1ab6df6085b7c5b35ed67cf766
[flang] Handle parent component in select type

In select type construct the associating entity in a TYPE IS
type guard statement is obtained with a fir.convert. Update the code
for the parent component to support fir.convert defining op
as well.

Reviewed By: jeanPerier

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