[all-commits] [llvm/llvm-project] ed642d: [flang] Handle parent component of extended derive...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Wed Sep 21 02:20:37 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: ed642d2064b8dbe8641f1e3f576e4817aa71680a
https://github.com/llvm/llvm-project/commit/ed642d2064b8dbe8641f1e3f576e4817aa71680a
Author: Valentin Clement <clementval at gmail.com>
Date: 2022-09-21 (Wed, 21 Sep 2022)
Changed paths:
M flang/lib/Lower/ConvertExpr.cpp
A flang/test/Lower/parent-component.f90
Log Message:
-----------
[flang] Handle parent component of extended derived-type
Parent component refers to the parent derived-type of an extended type.
The parent component is skipped when a specififc component is
referred to. This is fine since all the components in extended type
are available in the type itself. When the parent component is referred,
it need to be taken into account correctly.
This patch fixes the case when the parent component is referred. In a
box, an approriate slice is created or updated to point to the first
component of the parent component. For scalar, a simple conversion to
the parent component type is done.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D134170
More information about the All-commits
mailing list