[flang] Carry over dynamic type information when creating an unlimited polymorphic...
authorValentin Clement <clementval@gmail.com>
Tue, 21 Mar 2023 15:07:25 +0000 (16:07 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 21 Mar 2023 15:08:07 +0000 (16:08 +0100)
commitfaa1043144b3f6c3362fe1d9f43e55e741b40386
treedcac57c0fc1e2bbcef2634c478b0df9f95d39900
parentfd004a4986eb3ecc14f03a4ff4eef9bc06c78059
[flang] Carry over dynamic type information when creating an unlimited polymorphic temp

The dyanmic type must be carried over in a PolymorphicValue when the address is
loaded from an unlimited polymorphic allocatable.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D146525
flang/lib/Lower/ConvertExpr.cpp
flang/lib/Optimizer/Builder/FIRBuilder.cpp
flang/test/Lower/polymorphic.f90