[all-commits] [llvm/llvm-project] e657ac: [flang] Handle NULL(mold) used in initializer region

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Sat Sep 24 06:23:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e657acd449a8b765db8bb333e3e969c9f787b640
      https://github.com/llvm/llvm-project/commit/e657acd449a8b765db8bb333e3e969c9f787b640
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-09-24 (Sat, 24 Sep 2022)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Evaluate/tools.cpp
    M flang/lib/Lower/ConvertVariable.cpp
    M flang/test/Lower/default-initialization-globals.f90

  Log Message:
  -----------
  [flang] Handle NULL(mold) used in initializer region

NULL intrinsic with a MOLD argument can be used in a type constructor.
This patch handles this use case with a specific lowering that create
an unallocated box with the MOLD type.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list