[all-commits] [llvm/llvm-project] 9c3550: [flang][runtime] Use Descriptor::Establish() in el...

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Mar 10 10:30:53 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9c3550f69a0d08229996fa37ae6880e6248b712b
      https://github.com/llvm/llvm-project/commit/9c3550f69a0d08229996fa37ae6880e6248b712b
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-03-10 (Fri, 10 Mar 2023)

  Changed paths:
    M flang/runtime/assign.cpp

  Log Message:
  -----------
  [flang][runtime] Use Descriptor::Establish() in elemental derived type defined assignment calls

The code in DoElementalDefinedAssignment() needs to establish its
to & from per-element descriptors with Establish() rather than
copying an array's descriptor and then setting its rank to zero;
the current technique loses the information in the addendum.

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




More information about the All-commits mailing list