[all-commits] [llvm/llvm-project] efd5cd: [flang][runtime] Finalize polymorphic components u...

jeanPerier via All-commits all-commits at lists.llvm.org
Fri Sep 22 02:23:01 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: efd5cdeea238fc0f3e5b945fe3a5b46fca8ee066
      https://github.com/llvm/llvm-project/commit/efd5cdeea238fc0f3e5b945fe3a5b46fca8ee066
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2023-09-22 (Fri, 22 Sep 2023)

  Changed paths:
    M flang/runtime/derived.cpp

  Log Message:
  -----------
  [flang][runtime] Finalize polymorphic components using dynamic type (#67040)

Previous code was finalizing polymorphic components according to static
type (calling the static type final routine, if any).

There is no way (I think) to know from a
Fortran::runtime::typeInfo::Component if an allocatable component is
polymorphic or not. So this patch just always uses the dynamic type
descriptor to check for derived type allocatable component finalization.




More information about the All-commits mailing list