[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:03:39 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:

```suggestion
  // the actual argument is ranked, which allows simple code generation.
```

https://github.com/llvm/llvm-project/pull/79145


More information about the flang-commits mailing list