[all-commits] [llvm/llvm-project] ca2be8: [flang] Fix Symbol::Rank for ProcEntityDetails

Peter Klausler via All-commits all-commits at lists.llvm.org
Fri Apr 15 09:55:04 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ca2be81e34a6d87edb8e555dfac94ab68ee20f70
      https://github.com/llvm/llvm-project/commit/ca2be81e34a6d87edb8e555dfac94ab68ee20f70
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-04-15 (Fri, 15 Apr 2022)

  Changed paths:
    M flang/include/flang/Semantics/symbol.h
    M flang/lib/Evaluate/shape.cpp
    M flang/test/Evaluate/rewrite01.f90

  Log Message:
  -----------
  [flang] Fix Symbol::Rank for ProcEntityDetails

When a procedure pointer or procedure dummy argument has a
defined interface, the rank of the pointer (or dummy) is the
rank of the interface.

Also tweak code discovered in shape analysis when investigating
this problam so that it returns a vector of emptied extents rather
than std::nullopt when the extents are not scope-invariant, so that
the rank can at least be known.

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




More information about the All-commits mailing list