[flang] Do not try to rebox for assumed type
authorValentin Clement <clementval@gmail.com>
Thu, 16 Mar 2023 16:16:18 +0000 (17:16 +0100)
committerValentin Clement <clementval@gmail.com>
Thu, 16 Mar 2023 16:16:45 +0000 (17:16 +0100)
commit1d837cf2cf17eee2be0d3a9b6dd7e54c03d67175
treef402e696bb62380e0cd5d96f86f61eb73707665c
parenta5455e32b364dabe499ec11722626d4bbaf047ba
[flang] Do not try to rebox for assumed type

Just use conversion from assuemd type to assumed type
because a rebox needs more information that are not available
with assumed type.

Also use `isAssumedType` instead of `isBoxNone` since assumed
type can have sequence information.

Depends on D146207

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D146209
flang/include/flang/Optimizer/Dialect/FIRType.h
flang/lib/Lower/ConvertExpr.cpp
flang/lib/Optimizer/Builder/FIRBuilder.cpp
flang/lib/Optimizer/Dialect/FIRType.cpp
flang/test/Lower/assumed-type.f90