Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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
- Loading branch information
1 parent
602e1cb
commit 959caaa
Showing
3 changed files
with
84 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters