[all-commits] [llvm/llvm-project] 594825: [flang] Accept assumed shape arrays as SHAPE in C_...
jeanPerier via All-commits
all-commits at lists.llvm.org
Tue Sep 6 05:48:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 59482586e5927b4e57e275b304e9e17e61af2b9d
https://github.com/llvm/llvm-project/commit/59482586e5927b4e57e275b304e9e17e61af2b9d
Author: Jean Perier <jperier at nvidia.com>
Date: 2022-09-06 (Tue, 06 Sep 2022)
Changed paths:
M flang/lib/Lower/IntrinsicCall.cpp
M flang/test/Lower/Intrinsics/c_f_pointer.f90
Log Message:
-----------
[flang] Accept assumed shape arrays as SHAPE in C_F_POINTER
C_F_POINTER was added in https://reviews.llvm.org/D132303, but the code
assumed that SHAPE would always be an explicit shape with compile time
constant rank. It can actually be an assumed shape, or an explicit shape
with non compile time constant rank. Get the rank from FPTR pointer
instead.
Differential Revision: https://reviews.llvm.org/D133347
More information about the All-commits
mailing list