[all-commits] [llvm/llvm-project] 411f83: [flang] Fix for array upper bounds with *

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Jun 30 01:37:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 411f839ae36f0f56ce0b6c5f4e37039c54bdd9f7
      https://github.com/llvm/llvm-project/commit/411f839ae36f0f56ce0b6c5f4e37039c54bdd9f7
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-06-30 (Thu, 30 Jun 2022)

  Changed paths:
    M flang/lib/Lower/ConvertVariable.cpp
    A flang/test/Lower/memory-alloc.f90

  Log Message:
  -----------
  [flang] Fix for array upper bounds with *

Even though the array is declared with '*' upper bounds, it has an
initial value that has a statically known shape. Use the shape from
the type of the initializer when the declared size is '*'.

This patch is part of the upstreaming effort from fir-dev branch.

Reviewed By: jeanPerier

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

Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>




More information about the All-commits mailing list