[all-commits] [llvm/llvm-project] fba474: [flang] Fix CFI_CDESC_T(rank) for C (#66260)
Peter Klausler via All-commits
all-commits at lists.llvm.org
Mon Sep 18 13:00:55 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: fba474d3d6af01861b7092ce54ef02609b5b7dbd
https://github.com/llvm/llvm-project/commit/fba474d3d6af01861b7092ce54ef02609b5b7dbd
Author: Peter Klausler <35819229+klausler at users.noreply.github.com>
Date: 2023-09-18 (Mon, 18 Sep 2023)
Changed paths:
M flang/include/flang/ISO_Fortran_binding.h
Log Message:
-----------
[flang] Fix CFI_CDESC_T(rank) for C (#66260)
The CFI_CDESC_T(rank) macro defined for C (not C++) in
ISO_Fortran_binding.h incorporates a cdesc_t structure as a member,
which works for data layout but doesn't allow for direct access to its
members. (The C++ definition can use inheritance.)
Restructure the definitions in that header file so that
CFI_CDESC_T(rank) for C defines a struct with the expected members.
More information about the All-commits
mailing list