diff options
author | Abid Qadeer <haqadeer@amd.com> | 2024-09-30 20:31:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-30 20:31:08 +0100 |
commit | 1094ee71da533929cebb7ce98fd2665c924387a7 (patch) | |
tree | ea5080f7eb1f7e09eea895ba36fce270953be2d6 /flang/lib/Frontend/CompilerInvocation.cpp | |
parent | 49df12c01e99af6e091fedc123f775580064740a (diff) | |
download | llvm-1094ee71da533929cebb7ce98fd2665c924387a7.zip llvm-1094ee71da533929cebb7ce98fd2665c924387a7.tar.gz llvm-1094ee71da533929cebb7ce98fd2665c924387a7.tar.bz2 |
[flang][debug] Better handle array lower bound of assumed shape arrays. (#110302)
As mentioned in #108633, we don't respect the lower bound of the assumed
shape arrays if those were specified. It happens in both cases:
1. When caller has non-default lower bound and callee has default
2. When callee has non-default lower bound and caller has default
This PR tries to fix this issue by improving our generation of lower
bound attribute on DICompositeTypeAttr. If we see a lower bound in the
declaration, we respect that. Note that same function is also used for
allocatable/pointer variables. We make sure that we get the lower bound
from descriptor in those cases. Please note that DWARF assumes a lower
bound of 1 so in many cases we don't need to generate the lower bound.
Fixes #108633.
Diffstat (limited to 'flang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions