[flang-commits] [flang] [flang] Lower passing non assumed-rank/size to assumed-ranks (PR #79145)
via flang-commits
flang-commits at lists.llvm.org
Wed Jan 24 00:02:53 PST 2024
================
@@ -942,6 +964,18 @@ static PreparedDummyArgument preparePresentUserCallActualArgument(
(passingPolymorphicToNonPolymorphic ||
!Fortran::evaluate::IsSimplyContiguous(expr, foldingContext));
+ // Create dummy type with actual argument rank when the dummy is an assumed
+ // rank. That way, all the operation to create dummy descriptors are ranked if
+ // the dummy is ranked, which allows simple code generation.
----------------
jeanPerier wrote:
Indeed, thanks for reading it! updated to "to create dummy descriptors are ranked if the actual argument is ranked"
https://github.com/llvm/llvm-project/pull/79145
More information about the flang-commits
mailing list