[all-commits] [llvm/llvm-project] 4133a8: [flang] Accommodate arrays with a zero-extent dime...
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Mar 7 10:44:38 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4133a85c867fc0b5d6d53de85063f66562d3cb46
https://github.com/llvm/llvm-project/commit/4133a85c867fc0b5d6d53de85063f66562d3cb46
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2022-03-07 (Mon, 07 Mar 2022)
Changed paths:
M flang/lib/Evaluate/constant.cpp
M flang/lib/Evaluate/fold-implementation.h
M flang/lib/Evaluate/fold-integer.cpp
M flang/test/Evaluate/fold-findloc.f90
Log Message:
-----------
[flang] Accommodate arrays with a zero-extent dimension in location folding
The index incrementation code used for FINDLOC, MAXLOC, and MINLOC folding
would crash if the array had a zero extent on the dimension selected with
a DIM= argument since the subscript passed to IncrementSubscripts would
have a value less than the lower bound. Fix, and add tests.
Differential Revision: https://reviews.llvm.org/D121125
More information about the All-commits
mailing list