[all-commits] [llvm/llvm-project] 3b6158: [flang] LBOUND() edge case: empty dimension

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Mar 14 11:16:28 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b61587c9e27747438a0364f8b8cf19273142452
      https://github.com/llvm/llvm-project/commit/3b61587c9e27747438a0364f8b8cf19273142452
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-03-14 (Mon, 14 Mar 2022)

  Changed paths:
    M flang/docs/Extensions.md
    M flang/include/flang/Evaluate/shape.h
    M flang/include/flang/Runtime/descriptor.h
    M flang/lib/Evaluate/check-expression.cpp
    M flang/lib/Evaluate/constant.cpp
    M flang/lib/Evaluate/fold-designator.cpp
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/lib/Evaluate/fold.cpp
    M flang/lib/Evaluate/shape.cpp
    M flang/lib/Semantics/runtime-type-info.cpp
    M flang/runtime/ISO_Fortran_binding.cpp
    M flang/runtime/pointer.cpp
    M flang/test/Evaluate/folding08.f90

  Log Message:
  -----------
  [flang] LBOUND() edge case: empty dimension

LBOUND must return 1 for an empty dimension, no matter what
explicit expression might appear in a declaration or arrive in
a descriptor.

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




More information about the All-commits mailing list