[all-commits] [llvm/llvm-project] fa77f5: [flang] Simpify parent component handling

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Sun Mar 12 12:24:38 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: fa77f579560e399c44f76360f75c09483c845a04
      https://github.com/llvm/llvm-project/commit/fa77f579560e399c44f76360f75c09483c845a04
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-03-12 (Sun, 12 Mar 2023)

  Changed paths:
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/test/Lower/parent-component.f90
    M flang/test/Lower/polymorphic.f90

  Log Message:
  -----------
  [flang] Simpify parent component handling

This patch simplify the parent component handling when it's the last ref.

The first field is not necessary when the target box type is set correctly.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list