[flang][hlfir] Fixed symbol lookup for character returns.
authorSlava Zakharin <szakharin@nvidia.com>
Wed, 17 May 2023 03:05:22 +0000 (20:05 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Wed, 17 May 2023 15:59:33 +0000 (08:59 -0700)
commit4eab303404d6bb2252b4baf807c5ac87a0fa3125
treec0e126b5346c9914d20dd4b30936c751eb35a3b8
parent81890a527ff58f287663966e867ea47b2d2ac63d
[flang][hlfir] Fixed symbol lookup for character returns.

Symbols corresponding to entries returning character results
must be mapped to EmboxCharOp, first, before we can map them
to DeclareOp. The code may be reworked after HLFIR is enabled
by default, but right now it seems like an acceptable solution to me.

Differential Revision: https://reviews.llvm.org/D150749
flang/lib/Lower/Bridge.cpp
flang/test/Lower/HLFIR/function-return.f90