[all-commits] [llvm/llvm-project] 4a6326: [flang] Use fir.type_desc in nullify

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Tue Jul 11 12:42:08 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4a63264daa5b68210f83c97705db5dc4cf227638
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2023-07-11 (Tue, 11 Jul 2023)

  Changed paths:
    M flang/lib/Optimizer/Builder/Runtime/Derived.cpp
    M flang/test/Lower/nullify-polymorphic.f90
    M flang/test/Lower/pointer-disassociate.f90
    M flang/test/Lower/polymorphic.f90

  Log Message:
  [flang] Use fir.type_desc in nullify

Do not look for the global early in nullify codegen. The type descriptor
can be emitted later and it would raise an error as it could not be found.
Use `fir.type_desc` instead so it delays the type descriptor lookup until
evrything is emitted.


Reviewed By: vzakhari

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

More information about the All-commits mailing list