[flang] Support polymorphic inputs for UNPACK intrinsic
authorValentin Clement <clementval@gmail.com>
Wed, 8 Feb 2023 14:50:16 +0000 (15:50 +0100)
committerValentin Clement <clementval@gmail.com>
Wed, 8 Feb 2023 15:15:38 +0000 (16:15 +0100)
commitb5bffb7260508c97dca64623a4007a2241a6d7a0
tree2972ab6a4f4e0ecfdcad37badbc72643ad252a9a
parenta9d6a86b214e03fbaa68c10c482be2b9aea894ef
[flang] Support polymorphic inputs for UNPACK intrinsic

Result must carry the polymorphic type information
from the vector.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D143575
flang/lib/Optimizer/Builder/IntrinsicCall.cpp
flang/test/Lower/polymorphic-temp.f90