aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorjeanPerier <jperier@nvidia.com>2024-07-22 12:51:58 +0200
committerGitHub <noreply@github.com>2024-07-22 12:51:58 +0200
commit462d084241616627be1ac2b967a7fcba9b0facfe (patch)
treea03a3ad441f7f59b1029ec2510e0f1d71d7ab3a1 /clang/lib/CodeGen
parentbf08d0e1182c94b6fe14b8915df6a7e5e755e5f2 (diff)
downloadllvm-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