[all-commits] [llvm/llvm-project] 96aa48: [flang] Make uninitialized allocatable components ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 7 16:42:04 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 96aa48100c0b332b6e6821b664ad2fa5615c976a
      https://github.com/llvm/llvm-project/commit/96aa48100c0b332b6e6821b664ad2fa5615c976a
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-07 (Mon, 07 Mar 2022)

  Changed paths:
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Semantics/expression.cpp
    A flang/test/Semantics/modfile45.f90
    M flang/test/Semantics/oldparam02.f90

  Log Message:
  -----------
  [flang] Make uninitialized allocatable components explicitly NULL() in structure constructors

When a structure constructor does not initialize an allocatable component,
ensure that the typed expression representation contains an explicit
NULL() for the component.  Expression semantics already copies default
initialized expressions for nonallocatable components into structure
constructors.  This change is expected to simplify lowering.

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




More information about the All-commits mailing list