[flang][openacc] Fix lowerbound when there is no subscripts
authorValentin Clement <clementval@gmail.com>
Tue, 9 May 2023 21:27:08 +0000 (14:27 -0700)
committerValentin Clement <clementval@gmail.com>
Tue, 9 May 2023 21:27:27 +0000 (14:27 -0700)
commita6055edbe322c81ff910190aab872ab3530622e8
treecc2cb4759d249343a1012b00b0039f0b990bd016
parent39b6a7f06ea970db6b09932a4582376fba71f6b9
[flang][openacc] Fix lowerbound when there is no subscripts

The lowerbound was not correctly normalized to 0 when the bound
are generated for an array without subscripts.

```
integer :: a(11:20)
!$acc enter data create(a)
```

Reviewed By: razvanlupusoru

Differential Revision: https://reviews.llvm.org/D150208
flang/lib/Lower/OpenACC.cpp
flang/test/Lower/OpenACC/acc-data-operands.f90
flang/test/Lower/OpenACC/acc-enter-data.f90