[flang][hlfir] Array constructor lowering [part 4/4]
authorJean Perier <jperier@nvidia.com>
Fri, 24 Feb 2023 08:18:15 +0000 (09:18 +0100)
committerJean Perier <jperier@nvidia.com>
Fri, 24 Feb 2023 08:18:27 +0000 (09:18 +0100)
commitbc991d940f9a80735fabaf64473d67a3dc69285a
tree7413af945adf5074beaec40654d1889ef8662966
parent7f81dd4dd630790070698816f03597279da67d45
[flang][hlfir] Array constructor lowering [part 4/4]

Enable character and derived type array constructor lowering.
Nothing special needs to be done other than lowering the types
before the array constructor lowering.
Derived type are forced to use the runtime for now to avoid
undesired usage of user defined assignment that hlfir.assign
may trigger when using the runtime.

Differential Revision: https://reviews.llvm.org/D144548
flang/lib/Lower/ConvertArrayConstructor.cpp
flang/test/Lower/HLFIR/array-ctor-character.f90 [new file with mode: 0644]
flang/test/Lower/HLFIR/array-ctor-derived.f90 [new file with mode: 0644]