[flang] Apply lower bounds correctly before runtime call to ubound
authorValentin Clement <clementval@gmail.com>
Wed, 31 Aug 2022 11:24:57 +0000 (13:24 +0200)
committerValentin Clement <clementval@gmail.com>
Wed, 31 Aug 2022 11:25:16 +0000 (13:25 +0200)
commit82db2a24196d1d416d3ded74cba362f62963d13f
tree55db0a9cb9bbe9e58581041fb2127e62025ea149
parent9d22800275cdbb91cf4df91638887af550f8a60b
[flang] Apply lower bounds correctly before runtime call to ubound

Apply lower bounds before call to the ubound runtime function.
This is similary done in genLBound.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D133001
flang/lib/Lower/IntrinsicCall.cpp
flang/test/Lower/Intrinsics/ubound01.f90 [new file with mode: 0644]