[flang] Support allocate with source for polymorphic entities
authorValentin Clement <clementval@gmail.com>
Tue, 17 Jan 2023 15:11:45 +0000 (16:11 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 17 Jan 2023 15:12:46 +0000 (16:12 +0100)
commit5cc3879e111c696cf635d4278abbec39404b7aed
tree2b6daf34fe8bfeacb0014490f0aa8dd32f263203
parentd47bdae28e8ea7a64de2ac27159733bba8117cda
[flang] Support allocate with source for polymorphic entities

Apply the source type spec to the descriptor for
polyrmophic entities.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D141822
flang/lib/Lower/Allocatable.cpp
flang/test/Lower/allocatable-polymorphic.f90