[flang] Fix "not yet implemented" message for CHARACTER MIN/MAX
authorValentin Clement <clementval@gmail.com>
Thu, 30 Jun 2022 16:10:53 +0000 (18:10 +0200)
committerValentin Clement <clementval@gmail.com>
Thu, 30 Jun 2022 16:13:22 +0000 (18:13 +0200)
commit11c43cd2de5a8f9c152ab6f8967ff0781ec727b7
treef5ad697eb7b3141d4ad8be424cde763a3db7c847
parent1d83a16bd3faa1dfb6e8ed40c53d018dc03e2c81
[flang] Fix "not yet implemented" message for CHARACTER MIN/MAX

The check to see if the arguments for the MIN/MAX intrinsics were of CHARACTER
type was not handling assumed length characters.  In this case, the FIR type is
"!fir.ref<!fir.char<1,?>>".

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D128922

Co-authored-by: Peter Steinfeld <psteinfeld@nvidia.com>
flang/lib/Lower/IntrinsicCall.cpp