diff options
author | Abid Qadeer <haqadeer@amd.com> | 2024-07-10 14:37:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 14:37:59 +0100 |
commit | 51fac7747f8fb5bfa5e32f5d05e9d807c544a650 (patch) | |
tree | 14e5eddd5d13e1f9828f31c6832a22826239dc45 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 8b511e14770781bd31b0c03bad790bdd82793dac (diff) | |
download | llvm-51fac7747f8fb5bfa5e32f5d05e9d807c544a650.zip llvm-51fac7747f8fb5bfa5e32f5d05e9d807c544a650.tar.gz llvm-51fac7747f8fb5bfa5e32f5d05e9d807c544a650.tar.bz2 |
[flang][debug] Don't confuse count with upperBound. (#98174)
The code that handled allocatable array had swapped `count` with
`upperBound`. This did not get caught earlier as all the example were
using 1 as `lowerBound`.
Fixes #98166.
With the fix in place, the GDB now correctly handles the case pointed in
the bug ticket.
(gdb) p min::alloc2d
$2 = ((0, 0, 0) (0, 0, 0) (0, 0, 0) (0, 0, 0) (0, 0, 0))
(gdb) ptype min::alloc2d
type = integer, allocatable (-1:1,-2:2)
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions