[all-commits] [llvm/llvm-project] de1ace: [flang] Handle non derived-type unlimited polymorp...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Fri Nov 4 00:20:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: de1aced75942eacd59ba46b131311a6bbbe4d0f2
      https://github.com/llvm/llvm-project/commit/de1aced75942eacd59ba46b131311a6bbbe4d0f2
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-11-04 (Fri, 04 Nov 2022)

  Changed paths:
    M flang/lib/Lower/Allocatable.cpp
    M flang/test/Lower/polymorphic.f90

  Log Message:
  -----------
  [flang] Handle non derived-type unlimited polymorphic allocation

Runtime call to PointerNullifyDerived or AllocatableInitDerived
should only be generated for derived-type allocation of polymorphic entities.
With unlimited polymorphic entities, it is possible that the type spec is not
a derived-type. Avoid failure in that case.

Reviewed By: PeteSteinfeld

Differential Revision: https://reviews.llvm.org/D137353




More information about the All-commits mailing list