[all-commits] [llvm/llvm-project] b569f8: [Flang][FIR] Handle SequenceTypes in isRecordWithA...

agozillon via All-commits all-commits at lists.llvm.org
Mon Sep 21 07:45:20 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b569f8d694e9cec6fef18dfde2f2a76bc9f84983
      https://github.com/llvm/llvm-project/commit/b569f8d694e9cec6fef18dfde2f2a76bc9f84983
  Author: agozillon <Andrew.Gozillon at amd.com>
  Date:   2026-09-21 (Mon, 21 Sep 2026)

  Changed paths:
    M flang/lib/Optimizer/Dialect/FIRType.cpp
    A flang/test/Lower/OpenMP/DelayedPrivatization/target-firstprivate-nested-allocatable-mapper.f90

  Log Message:
  -----------
  [Flang][FIR] Handle SequenceTypes in isRecordWithAllocatableMember (#224048)

Currently isRecordWithAllocatableMember does not handle sequence types,
either at the top level on the input type or in subsequent nestings, it
will effectively skip them. This is quite different to how
isRecordWithDescriptorMember handles these cases, as it does in fact
unwrap sequence types to correctly dictate if there are descriptor
members inside of a record type.

This PR simply aims to align the behaviour with
isRecordWithDescriptorMember, as there are several locations where
isRecordWithAllocatableMember is being used and the expectation is that
it will indicate if there's an allocatable member inside of the record
type irrespective of sequence types being part of the equation.



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