[all-commits] [llvm/llvm-project] 06fcd1: [flang] Lower allocate for polymorphic pointer

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Oct 27 11:56:19 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 06fcd149d176e87188801e77433c731013b32d74
      https://github.com/llvm/llvm-project/commit/06fcd149d176e87188801e77433c731013b32d74
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-10-27 (Thu, 27 Oct 2022)

  Changed paths:
    M flang/lib/Lower/Allocatable.cpp
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/test/Lower/allocatable-polymorphic.f90

  Log Message:
  -----------
  [flang] Lower allocate for polymorphic pointer

Lowering of allocate statement for polymoprhic pointers is a bit
different than for allocatables. A call to `PointerNullifyDerived`
runtime function is done instead of `AllocatableInitDerived`.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list