[flang-commits] [flang] [Flang][OpenMP] Stop emitting implicit mappers for allocatable derived types (and arrays of them) unconditionally (PR #216184)
Sairudra More via flang-commits
flang-commits at lists.llvm.org
Fri Aug 14 06:30:53 PDT 2026
================
@@ -1207,7 +1207,6 @@ resolveMapperId(Fortran::lower::AbstractConverter &converter,
(mapTypeBits & mlir::omp::ClauseMapFlags::implicit) ==
mlir::omp::ClauseMapFlags::implicit;
bool needsDefaultMapper =
- isAllocOrPointer ||
----------------
Saieiei wrote:
Could we check `IsIsoCType(&spec)` inside the recursive walk? Otherwise, for an explicitly mapped allocatable wrapper containing `type(c_ptr)`, this helper returns false, so the nested mapper is no longer generated. Could we add a regression for this case?
https://github.com/llvm/llvm-project/pull/216184
More information about the flang-commits
mailing list