[flang] Make sure that conversions are applied in FORALL degenerate contexts
authorValentin Clement <clementval@gmail.com>
Tue, 28 Jun 2022 13:24:21 +0000 (15:24 +0200)
committerValentin Clement <clementval@gmail.com>
Tue, 28 Jun 2022 13:24:55 +0000 (15:24 +0200)
commite2f313df8fc3c5bdc60de30ffa7c829191eea4f4
treedf2a8545a99b3a2e1ea1805b1cba75b399c02dc5
parent3348c08359d39b4903f13be7e1bfa32dc27f748e
[flang] Make sure that conversions are applied in FORALL degenerate contexts

For the rapid triage push, just add a TODO for the degenerate POINTER
assignment case. The LHD ought to be a variable of type !fir.box, but it
is currently returning a shadow variable for the raw data pointer. More
investigation is needed there.
Make sure that conversions are applied in FORALL degenerate contexts.

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

Reviewed By: jeanPerier

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

Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
flang/include/flang/Optimizer/Dialect/FIRType.h
flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/forall/degenerate.f90 [new file with mode: 0644]