[all-commits] [llvm/llvm-project] d8d91b: [flang][hlfir] Support type descriptor for initial...

jeanPerier via All-commits all-commits at lists.llvm.org
Tue Feb 28 06:16:17 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d8d91b2a25db8920c44a3dea36fc0eeff93bdfa0
      https://github.com/llvm/llvm-project/commit/d8d91b2a25db8920c44a3dea36fc0eeff93bdfa0
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-02-28 (Tue, 28 Feb 2023)

  Changed paths:
    M flang/lib/Lower/ConvertType.cpp
    A flang/test/Lower/HLFIR/tdesc-character-comp-init.f90

  Log Message:
  -----------
  [flang][hlfir] Support type descriptor for initialized character component

These compiler generated component descriptor include designators packaged
as CLASS(*) for simplicity. HLFIR hit an assert in an std::get trying to
recover an Expr<SomeChar> while translating the expression type.
Use the dynamic type of the CLASS(*) expr in that case to recover the
compiler length.

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




More information about the All-commits mailing list