[all-commits] [llvm/llvm-project] 475d18: [flang][runtime] Fix empty FINDLOC() results (#75251)
Peter Klausler via All-commits
all-commits at lists.llvm.org
Tue Dec 26 15:18:32 PST 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 475d18f15db2d6925f81c39900e725e1fe28cba1
https://github.com/llvm/llvm-project/commit/475d18f15db2d6925f81c39900e725e1fe28cba1
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2023-12-26 (Tue, 26 Dec 2023)
Changed paths:
M flang/runtime/findloc.cpp
Log Message:
-----------
[flang][runtime] Fix empty FINDLOC() results (#75251)
When FINDLOC() can't find its target value among the unmasked array
elements, it must return a zero result. Its implementation doesn't
sufficiently distinguish a zero result from a hit in an array with lower
bound(s) less than one. Fix by adding a flag to distinguish the case
with no hits from cases with hits.
Fixes llvm-test-suite/Fortran/gfortran/regression/findloc_6.f90.
More information about the All-commits
mailing list