aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorPeter Klausler <35819229+klausler@users.noreply.github.com>2023-12-26 15:18:19 -0800
committerGitHub <noreply@github.com>2023-12-26 15:18:19 -0800
commit475d18f15db2d6925f81c39900e725e1fe28cba1 (patch)
treec037265305b2e93cd51e28e6d15cfe2ee3669f34 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent8fc045e26bf90586c287256c5f1da5a7826cdb90 (diff)
downloadllvm-475d18f15db2d6925f81c39900e725e1fe28cba1.zip
llvm-475d18f15db2d6925f81c39900e725e1fe28cba1.tar.gz
llvm-475d18f15db2d6925f81c39900e725e1fe28cba1.tar.bz2
[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.
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions