Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[flang] Set lower bounds of array section fir.embox to one
Do not use the shift of a fir.embox to set lower bounds if there is a fir.slice operand. This matches Fortran semantics where lower bounds of array sections are ones. Note that in case there is a fir.slice, the array shift may be provided because it is used to calculate the origin/base address of an array slice. Add a TODO for substring codegen since I noticed it was not upstreamed yet and would cause some program to silently compile incorrectly. Differential Revision: https://reviews.llvm.org/D123123
- Loading branch information
1 parent
09a5eae
commit bb3afae
Showing
2 changed files
with
10 additions
and
12 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