[all-commits] [llvm/llvm-project] f783c9: [flang] Support allocate array from scalar source ...

PeixinQiao via All-commits all-commits at lists.llvm.org
Wed Feb 1 05:12:32 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f783c9bbbe576ad580aaaf6841ce8f3646cd0824
      https://github.com/llvm/llvm-project/commit/f783c9bbbe576ad580aaaf6841ce8f3646cd0824
  Author: Peixin Qiao <qiaopeixin at huawei.com>
  Date:   2023-02-01 (Wed, 01 Feb 2023)

  Changed paths:
    M flang/lib/Lower/Allocatable.cpp
    M flang/runtime/allocatable.cpp
    M flang/runtime/assign.cpp
    M flang/runtime/assign.h
    M flang/runtime/pointer.cpp
    M flang/unittests/Runtime/Allocatable.cpp
    M flang/unittests/Runtime/Pointer.cpp

  Log Message:
  -----------
  [flang] Support allocate array from scalar source in runtime

As Fortran 2018 9.7.1.2(7), the value of each element of allocate object
becomes the value of source when the allocate object is array and the
source is scalar.

Fix #60090.

Reviewed By: PeteSteinfeld

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




More information about the All-commits mailing list