[all-commits] [llvm/llvm-project] dd8a24: [flang] Reset dynamic type for optional intent(out...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Thu Mar 9 06:49:07 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: dd8a2434c7f200d54f167166b4db2e3057676f5e
https://github.com/llvm/llvm-project/commit/dd8a2434c7f200d54f167166b4db2e3057676f5e
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-03-09 (Thu, 09 Mar 2023)
Changed paths:
M flang/lib/Lower/ConvertVariable.cpp
M flang/test/Lower/intentout-deallocate.f90
Log Message:
-----------
[flang] Reset dynamic type for optional intent(out) allocatable polymorphic dummy
Allocatable intent(out) are deallocated at the beginning of a function/subroutine.
For polyrmophic entities, the dynamic type need to be reseted to the declared
type. This patch makes sure this is done when the dummy argument is optional and
present.
Depends on D145674
Reviewed By: PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D145679
More information about the All-commits
mailing list