[flang] Allow `to` argument of move_alloc to be class(*)
authorDavid Truby <David.Truby@arm.com>
Tue, 28 Feb 2023 14:32:37 +0000 (14:32 +0000)
committerDavid Truby <david.truby@arm.com>
Tue, 28 Feb 2023 14:32:59 +0000 (14:32 +0000)
commit3cf8259519c9fde6b8bb45cea4b8400bc5a7e386
tree3a68594b8233f6a245d9d8608566a739c97d07bc
parent26202a57e5e78b5473ef657737d181f0a68ed56d
[flang] Allow `to` argument of move_alloc to be class(*)

This patch expands the runtime check in move_alloc to allow the
destination to be unlimited polymorphic.

Reviewed By: clementval

Differential Revision: https://reviews.llvm.org/D143571
flang/runtime/allocatable.cpp