[all-commits] [llvm/llvm-project] a6924c: [flang] Use input type when emboxing/reboxing poly...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Dec 13 00:44:39 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a6924c6d7422a7ae162f3df7e5ba22e204becc78
      https://github.com/llvm/llvm-project/commit/a6924c6d7422a7ae162f3df7e5ba22e204becc78
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-12-13 (Tue, 13 Dec 2022)

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

  Log Message:
  -----------
  [flang] Use input type when emboxing/reboxing polymorphic entities

When emboxing an entity to a polymorphic box, use the input type to
compute the type code and element size as the box type is too generic.
When reboxing a polymorphic box, get this information from the input
box.

Reviewed By: jeanPerier

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




More information about the All-commits mailing list