[all-commits] [llvm/llvm-project] a01edb: [flang] Fix output type when emboxing intrinsic ty...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Mon Feb 13 06:42:03 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a01edb169bb06c2091b6c9fe6d7a9f07fc673766
      https://github.com/llvm/llvm-project/commit/a01edb169bb06c2091b6c9fe6d7a9f07fc673766
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-02-13 (Mon, 13 Feb 2023)

  Changed paths:
    M flang/lib/Optimizer/Builder/FIRBuilder.cpp
    M flang/test/Lower/polymorphic.f90

  Log Message:
  -----------
  [flang] Fix output type when emboxing intrinsic type to unlimited polymorphic box

When emboxing an intrinsic type to a polymorphic descriptor, directly set its
type to `fir.class<none>`.

`fir.class<i32>` is not a real type used anywhere in lowering so make it right directly
avoid unnecessary convert op to `fir.class<none>`. Also `fir.class<i32>` would not be
recognized as unlimited polymorphic.

Reviewed By: jeanPerier, PeteSteinfeld

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




More information about the All-commits mailing list