[all-commits] [llvm/llvm-project] 0ff137: [flang] Use fir.rebox for tbp fir.dispatch call wi...

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


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

  Changed paths:
    M flang/include/flang/Optimizer/Dialect/FIROps.td
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/test/Fir/invalid.fir
    M flang/test/Lower/dispatch.f90

  Log Message:
  -----------
  [flang] Use fir.rebox for tbp fir.dispatch call with allocatable or pointer

Polymorphic entities with allocatable or pointer attribute cannot be passed
directly as passed-object when the type-bound procedure is expecting a
simply dummy polymorphic entity. Use fir.rebox to adapt the fir.class box
to the tbp type.

Depends on D135649

Reviewed By: jeanPerier

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




More information about the All-commits mailing list