diff options
author | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-02-02 14:15:50 -0800 |
---|---|---|
committer | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-02-03 10:53:32 -0800 |
commit | 2018dafce50cbd1363fdd4e24c76e98852843a19 (patch) | |
tree | 01abc99b9bbc3c842182f264c1ec799911f3e50f /clang/lib | |
parent | 15f26c5f5191fd4cfdece0e9621efd395ba57bc8 (diff) | |
download | llvm-2018dafce50cbd1363fdd4e24c76e98852843a19.zip llvm-2018dafce50cbd1363fdd4e24c76e98852843a19.tar.gz llvm-2018dafce50cbd1363fdd4e24c76e98852843a19.tar.bz2 |
[flang] Fix calls to LBOUND() intrinsic for arrays with lower bounds not 1
Constant folding for calls to LBOUND() was not working when the lower bound of
a constant array was not 1.
I fixed this and re-enabled the test in Evaluate/folding16.f90 that previously
was silently failing. I slightly changed the test to parenthesize the first
argument to exercise all of the new code.
Differential Revision: https://reviews.llvm.org/D95894
Diffstat (limited to 'clang/lib')
0 files changed, 0 insertions, 0 deletions