[flang] Keep the extended value for assumed-type optional
authorValentin Clement <clementval@gmail.com>
Wed, 5 Apr 2023 20:34:23 +0000 (13:34 -0700)
committerValentin Clement <clementval@gmail.com>
Wed, 5 Apr 2023 20:35:24 +0000 (13:35 -0700)
commit6164d363e3d99442f7f1fd81d11b97e979684e2f
treed3a83164305caace6d6e6bb11d91d5fb2418c73d
parent43d90f3056f91198169505eb2c8ccf47f384b877
[flang] Keep the extended value for assumed-type optional

Keep the extended value when lowering optional assumed type
dummy argument. The extended value is needed to lower correctly the
rest of the code.

Reviewed By: PeteSteinfeld, jeanPerier

Differential Revision: https://reviews.llvm.org/D147575
flang/lib/Lower/ConvertExpr.cpp
flang/test/Lower/assumed-type.f90