[flang][runtime] Fix total MAXLOC/MINLOC for non-integer data
authorPeter Klausler <pklausler@nvidia.com>
Wed, 20 Apr 2022 22:58:43 +0000 (15:58 -0700)
committerPeter Klausler <pklausler@nvidia.com>
Mon, 25 Apr 2022 19:42:20 +0000 (12:42 -0700)
commit2c272a4e8f9dc9acca3f15bb0327e329941dc3ff
treecd268625a08db801ed53cc2c1b3fb4938e6e00bf
parent5c90ecae2db104a816aeb33b6f773aaf782850e7
[flang][runtime] Fix total MAXLOC/MINLOC for non-integer data

A template argument was hard-coded as the Integer type category
rather than properly forwarding the type category of the data for
type-specific instantiations of total (no DIM=) MAXLOC and MINLOC.
This broke total MAXLOC and MINLOC reductions for real and character
data.

Differential Revision: https://reviews.llvm.org/D124303
flang/runtime/extrema.cpp