[flang] Fixed substr access in embox/rebox CodeGen.
authorSlava Zakharin <szakharin@nvidia.com>
Tue, 18 Apr 2023 00:06:14 +0000 (17:06 -0700)
committerSlava Zakharin <szakharin@nvidia.com>
Tue, 18 Apr 2023 15:39:35 +0000 (08:39 -0700)
commita45ca5d999dc4631f4680febe99ce49df3e813b1
treed276a56d70c45d2229df610b4127dc5454625b05
parent3950e44eb0ad8d12705d9211c76d622c76f387e9
[flang] Fixed substr access in embox/rebox CodeGen.

The code was using the original operand of the operation, while
it should have been using the remapped operands via the adaptor.

Differential Revision: https://reviews.llvm.org/D148587
flang/lib/Optimizer/CodeGen/CodeGen.cpp
flang/test/Fir/embox-substring.fir [new file with mode: 0644]
flang/test/Fir/rebox-susbtring.fir