[all-commits] [llvm/llvm-project] 38c85a: [flang] Do not query type_desc for unlimited polym...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Mon Mar 6 08:57:29 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 38c85a419605417b818bc017aff734ab2f2007f5
https://github.com/llvm/llvm-project/commit/38c85a419605417b818bc017aff734ab2f2007f5
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-03-06 (Mon, 06 Mar 2023)
Changed paths:
M flang/lib/Optimizer/Builder/Runtime/Allocatable.cpp
M flang/test/Lower/polymorphic.f90
Log Message:
-----------
[flang] Do not query type_desc for unlimited polymoprhic entities in move_alloc
In D144997, the dynamic type of polymorphic entities is reset to the declared
type when the FROM is deallocated. To do this, the declared type was passed as
a fir.type_desc op. For unlimited polymorphic entities, this should just be a
null pointer.
Reviewed By: PeteSteinfeld
Differential Revision: https://reviews.llvm.org/D145380
More information about the All-commits
mailing list