[all-commits] [llvm/llvm-project] 3632e9: [flang] Accept NULL(mold=x) as constant component ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Feb 14 14:47:11 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3632e9f85246ac01711f1151ae72dbba3d2a38d5
      https://github.com/llvm/llvm-project/commit/3632e9f85246ac01711f1151ae72dbba3d2a38d5
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-02-14 (Mon, 14 Feb 2022)

  Changed paths:
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Semantics/expression.cpp

  Log Message:
  -----------
  [flang] Accept NULL(mold=x) as constant component value in constant structure constructor

The predicate IsInitialDataTarget() was failing to return a correct true
result in the case of a reference to the intrinsic function NULL() with a
MOLD= argument.  Fix, and improve tests for "NULL()" elsewhere in semantics,
checking for an attribute set by intrinsics.cpp rather than the actual name.

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




More information about the All-commits mailing list