[all-commits] [llvm/llvm-project] 0d7e4d: [flang] Deallocate polymorphic and unlimited polym...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Wed Oct 5 07:07:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d7e4d099e9b04da588a73e8d4c441a79ed7c5b5
      https://github.com/llvm/llvm-project/commit/0d7e4d099e9b04da588a73e8d4c441a79ed7c5b5
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-10-05 (Wed, 05 Oct 2022)

  Changed paths:
    M flang/include/flang/Optimizer/Builder/BoxValue.h
    M flang/lib/Lower/Allocatable.cpp
    M flang/test/Lower/polymorphic-types.f90

  Log Message:
  -----------
  [flang] Deallocate polymorphic and unlimited polymorphic intent(out) allocatable with runtime

Polymorphic and unlimited polymorphic entities should be handled by runtime. This patch
update the condition in `genDeallocate` to force polymorphic and unlimited polymorphic entities
to be deallocated through a runtime call and not inlined.

Depends on D135143

Reviewed By: jeanPerier, PeteSteinfeld

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




More information about the All-commits mailing list