diff options
author | jeanPerier <jperier@nvidia.com> | 2024-07-22 12:51:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-22 12:51:58 +0200 |
commit | 462d084241616627be1ac2b967a7fcba9b0facfe (patch) | |
tree | a03a3ad441f7f59b1029ec2510e0f1d71d7ab3a1 /clang/lib/CodeGen | |
parent | bf08d0e1182c94b6fe14b8915df6a7e5e755e5f2 (diff) | |
download | llvm-462d084241616627be1ac2b967a7fcba9b0facfe.zip llvm-462d084241616627be1ac2b967a7fcba9b0facfe.tar.gz llvm-462d084241616627be1ac2b967a7fcba9b0facfe.tar.bz2 |
[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.
Diffstat (limited to 'clang/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions