diff options
author | Peter Klausler <pklausler@nvidia.com> | 2023-07-24 08:53:41 -0700 |
---|---|---|
committer | Peter Klausler <pklausler@nvidia.com> | 2023-08-01 11:02:58 -0700 |
commit | f9fdd4fdbafbae7e6bc0ad2dd29b9ebb484fef11 (patch) | |
tree | b97136f710faa1de372812986d992d9989bea317 /llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp | |
parent | 05d613ea931b6de1b46dfe04b8e55285359047f4 (diff) | |
download | llvm-f9fdd4fdbafbae7e6bc0ad2dd29b9ebb484fef11.zip llvm-f9fdd4fdbafbae7e6bc0ad2dd29b9ebb484fef11.tar.gz llvm-f9fdd4fdbafbae7e6bc0ad2dd29b9ebb484fef11.tar.bz2 |
[flang] Don't emit false errors on LBOUND/UBOUND of assumed-rank arrays
Folding of LBOUND/UBOUND on assumed-rank arrays could lead to bogus errors
later. This is a regression from a recent change intended to ensure that
patently bad DIM= arguments were caught even in the case of assumed-rank.
Rearrange the order of checks so that those bad DIM= argument values are
caught but otherwise defer LBOUND/UBOUND of assumed-rank arguments to
run time. (It was tempting to always fold LBOUND(ar,DIM=n) to 1, but
that would obscure the run time error required when 'n' is out of bounds,
including the case of a scalar 'ar'.)
Differential Revision: https://reviews.llvm.org/D156755
Diffstat (limited to 'llvm/tools/llvm-libtool-darwin/llvm-libtool-darwin.cpp')
0 files changed, 0 insertions, 0 deletions