[all-commits] [llvm/llvm-project] 34ed7d: [Flang] Fix ALLOCATE with MOLD where MOLD is a scalar

Pete Steinfeld via All-commits all-commits at lists.llvm.org
Thu Mar 9 06:08:14 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 34ed7db9e1f65ef641776b3c5dff594d5183cab3
      https://github.com/llvm/llvm-project/commit/34ed7db9e1f65ef641776b3c5dff594d5183cab3
  Author: Peter Steinfeld <psteinfeld at nvidia.com>
  Date:   2023-03-09 (Thu, 09 Mar 2023)

  Changed paths:
    M flang/lib/Lower/Allocatable.cpp
    M flang/test/Lower/allocate-mold.f90

  Log Message:
  -----------
  [Flang] Fix ALLOCATE with MOLD where MOLD is a scalar

We were failing tests where an ALLOCATE statement that allocated an
array had a non-character scalar MOLD argument.

I fixed this by merging the code for ALLOCATE statements with MOLD and
SOURCE arguments.

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




More information about the All-commits mailing list