[flang] Support polymorphic source in RESHAPE intrinsic
authorValentin Clement <clementval@gmail.com>
Thu, 19 Jan 2023 16:33:08 +0000 (17:33 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 19 Jan 2023 16:33:29 +0000 (17:33 +0100)
commite315b872b291ad268bf0ae6e276a07de6f29992b
tree0c40cdee1236a2b2d1e96407720d3f611267b82c
parenta459a2485b54fbd9e1f8a48061e79cdcd12b12a5
[flang] Support polymorphic source in RESHAPE intrinsic

Result must carry the polymorphic type information
from the source.

Reviewed By: jeanPerier, PeteSteinfeld

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