[all-commits] [llvm/llvm-project] 959caa: [flang] Add conditional rebox when passing fir.box...
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Mon Jan 23 06:42:24 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 959caaaa7b2954ccc16f60b05d998e336bf36b38
https://github.com/llvm/llvm-project/commit/959caaaa7b2954ccc16f60b05d998e336bf36b38
Author: Valentin Clement <clementval at gmail.com>
Date: 2023-01-23 (Mon, 23 Jan 2023)
Changed paths:
M flang/lib/Lower/ConvertExpr.cpp
M flang/lib/Optimizer/CodeGen/CodeGen.cpp
M flang/test/Lower/polymorphic.f90
Log Message:
-----------
[flang] Add conditional rebox when passing fir.box to optional fir.class
When a `!fir.box<>` is passed as an actual argument to an optional
`!fir.class<>` dummy it needs a `fir.rebox` in order to propagate
the dynamic type information.
The `fir.rebox` needs to happen only on present argument.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D142340
More information about the All-commits
mailing list