aboutsummaryrefslogtreecommitdiff
path: root/flang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAbid Qadeer <haqadeer@amd.com>2024-09-30 20:31:08 +0100
committerGitHub <noreply@github.com>2024-09-30 20:31:08 +0100
commit1094ee71da533929cebb7ce98fd2665c924387a7 (patch)
treeea5080f7eb1f7e09eea895ba36fce270953be2d6 /flang/lib/Frontend/CompilerInvocation.cpp
parent49df12c01e99af6e091fedc123f775580064740a (diff)
downloadllvm-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