[all-commits] [llvm/llvm-project] fbca61: [flang] Load fir.ref<fir.class<T>> instead of crea...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Mar 14 13:45:45 PDT 2023


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

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

  Log Message:
  -----------
  [flang] Load fir.ref<fir.class<T>> instead of creating a wrong box

When a subroutine has an entry statement, the non-used argument
will be a fir.alloca and result in a fir.ref<fir.class<T>> for
polymorphic entities. In createBox, just load the box instead of
creating a wrong box.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list