[flang] Lower character result of bind(c) function by value
authorValentin Clement <clementval@gmail.com>
Sat, 24 Sep 2022 06:58:50 +0000 (08:58 +0200)
committerValentin Clement <clementval@gmail.com>
Sat, 24 Sep 2022 07:00:26 +0000 (09:00 +0200)
commitde3efd1b4c8e120c37b24e7cc264b5a117641bb1
tree0a8b0f998004a2d51e930efbdcf157e4494a51b1
parent4f86c5cbb79d268d8a21c1d83d2d475295768792
[flang] Lower character result of bind(c) function by value

BIND(C) Function returning character must return it by value and
not as hidden argument like done currently. This patch update the
code to return it by value for both use cases.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D134530
flang/lib/Lower/Bridge.cpp
flang/lib/Lower/CallInterface.cpp
flang/lib/Lower/ConvertExpr.cpp
flang/lib/Lower/ConvertVariable.cpp
flang/test/Lower/call.f90