[all-commits] [llvm/llvm-project] 3ad982: [flang] Fix the extent calculation when upper boun...
Pete Steinfeld via All-commits
all-commits at lists.llvm.org
Tue Aug 10 10:37:49 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3ad9826dcd480d04480ebb98dae426f435a2c135
https://github.com/llvm/llvm-project/commit/3ad9826dcd480d04480ebb98dae426f435a2c135
Author: Peter Steinfeld <psteinfeld at nvidia.com>
Date: 2021-08-10 (Tue, 10 Aug 2021)
Changed paths:
M flang/lib/Evaluate/shape.cpp
A flang/test/Evaluate/folding21.f90
Log Message:
-----------
[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
More information about the All-commits
mailing list