[flang][hlfir] Fixed boxchar variables emboxing.
authorSlava Zakharin <szakharin@nvidia.com>
Mon, 1 May 2023 16:53:45 +0000 (09:53 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Mon, 1 May 2023 16:53:49 +0000 (09:53 -0700)
commit266d65c98a9e80a1e77b09e8042b3a823d46df53
tree5a7d8b62504ac82fb990411b378cd7633a54ec2d
parent57e38bc6c8e2712aedf3dbef98265d3320c4906d
[flang][hlfir] Fixed boxchar variables emboxing.

We have to unbox the boxchar variables in order to get to
the raw address that can be used for emboxing.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D149473
flang/lib/Optimizer/Builder/HLFIRTools.cpp
flang/test/HLFIR/boxchar_emboxing.f90 [new file with mode: 0644]