[flang] Use runtime Assign when rhs is polymorphic
authorValentin Clement <clementval@gmail.com>
Tue, 21 Feb 2023 09:14:00 +0000 (10:14 +0100)
committerValentin Clement <clementval@gmail.com>
Tue, 21 Feb 2023 09:14:31 +0000 (10:14 +0100)
commit33c29a82a9b3b8a0354a5b5bd75b462505602107
tree725e386419a8c30e83def2db1890a7d28b0bf4f1
parent0c444ff514bfbeb9a4674fdb703c7708b118ebde
[flang] Use runtime Assign when rhs is polymorphic

Use the runtime when there lhs or rhs is polymorphic. The runtime
allows to deal better with polymorphic entities and aliasing.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D144418
flang/lib/Lower/Bridge.cpp
flang/test/Lower/polymorphic.f90