[all-commits] [llvm/llvm-project] 462d08: [flang] fix sequence association of polymorphic ac...

jeanPerier via All-commits all-commits at lists.llvm.org
Mon Jul 22 03:52:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 462d084241616627be1ac2b967a7fcba9b0facfe
      https://github.com/llvm/llvm-project/commit/462d084241616627be1ac2b967a7fcba9b0facfe
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-07-22 (Mon, 22 Jul 2024)

  Changed paths:
    M flang/lib/Lower/ConvertCall.cpp
    A flang/test/Lower/HLFIR/calls-poly-to-nonpoly.f90

  Log Message:
  -----------
  [flang] fix sequence association of polymorphic actual arguments (#99294)

When passing a polymorphic actual array argument to an non polymorphic
explicit or assumed shape argument, copy-in/copy-out may be required and
should be made according to the dummy dynamic type.

The code that was creating the descriptor to drive this copy-in/out was
not handling properly the case where the dummy and actual rank do not
match (possible according to sequence association rules), it tried to
make the copy-in/out according to the dummy argument shape (which we may
not even know if the dummy is assumed-size). Fix this by using the
actual shape when creating this new descriptor with the dummy argument
dynamic type.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list