[all-commits] [llvm/llvm-project] 7ede5b: [Flang][OpenMP] Fix close map flag propagation for...

Kareem Ergawy via All-commits all-commits at lists.llvm.org
Sun Mar 8 17:12:54 PDT 2026


  Branch: refs/heads/users/ergawy/close_flag
  Home:   https://github.com/llvm/llvm-project
  Commit: 7ede5b3ab1a366f5c6d5d8bc9a11cb96cf8c886b
      https://github.com/llvm/llvm-project/commit/7ede5b3ab1a366f5c6d5d8bc9a11cb96cf8c886b
  Author: Kareem Ergawy <kareem.ergawy at amd.com>
  Date:   2026-03-08 (Sun, 08 Mar 2026)

  Changed paths:
    M flang/lib/Optimizer/OpenMP/MapInfoFinalization.cpp
    A flang/test/Transforms/omp-map-info-finalization-usm.fir
    A offload/test/offloading/fortran/usm_derived_type_allocatable_member.f90

  Log Message:
  -----------
  [Flang][OpenMP] Fix close map flag propagation for derived types in USM (#1557)

This fixes a bug in USM mode where the `close` map type modifer was
attached to some `map.info.op`'s corresponding to user-defined type
members while the parent type instance itself is not marked as `close`.

This fix ensures that if a parent record type map does not have the
'close' flag, it is cleared from its members as well, maintaining
consistency.

Gemini was used to create tests. AI generated test code was reviewed
line-by-line by me. Which were derived from a reproducer I was working
with to debug the issue.

Assisted-by: Gemini <gemini at google.com>



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list