[all-commits] [llvm/llvm-project] 2406ba: [flang] Fix code generation for polymorphic deallo...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Oct 31 08:34:21 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2406ba1563d5d2805cee1d41c29f2837e2fd5bd7
      https://github.com/llvm/llvm-project/commit/2406ba1563d5d2805cee1d41c29f2837e2fd5bd7
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-10-31 (Mon, 31 Oct 2022)

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

  Log Message:
  -----------
  [flang] Fix code generation for polymorphic deallocation

This patch fix issues found during call to deallocate.
fir.class can be handled the same way as fir.box in fir.store operation
code generation. In MutableBox::createNewFirBox, the fir.class is
also already a boxed entity.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list