diff options
author | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-08-10 08:20:30 -0700 |
---|---|---|
committer | Peter Steinfeld <psteinfeld@nvidia.com> | 2021-08-10 10:34:22 -0700 |
commit | 3ad9826dcd480d04480ebb98dae426f435a2c135 (patch) | |
tree | 44975076e72a78e28417707166454af9b06b981a /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | d719f1c3cc9c6f44438b4bd847816d7462945269 (diff) | |
download | llvm-3ad9826dcd480d04480ebb98dae426f435a2c135.zip llvm-3ad9826dcd480d04480ebb98dae426f435a2c135.tar.gz llvm-3ad9826dcd480d04480ebb98dae426f435a2c135.tar.bz2 |
[flang] Fix the extent calculation when upper bounds are less than lower bounds
When the upper bound is less than the lower bound, the extent is zero. This is
specified in section 8.5.8.2, paragraph 3.
Note that similar problems exist in the lowering code. This change only fixes
the problem for the front end.
I also added a test.
Differential Revision: https://reviews.llvm.org/D107832
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions