[all-commits] [llvm/llvm-project] c38598: [flang] Fix constant subscript operations (#68352)

Leandro Lupori via All-commits all-commits at lists.llvm.org
Tue Oct 17 07:43:29 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c38598186bbc442882610ee15ca4fd9ec022c9c8
      https://github.com/llvm/llvm-project/commit/c38598186bbc442882610ee15ca4fd9ec022c9c8
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2023-10-17 (Tue, 17 Oct 2023)

  Changed paths:
    M flang/lib/Evaluate/constant.cpp
    M flang/test/Evaluate/folding08.f90
    M flang/test/Semantics/reshape.f90

  Log Message:
  -----------
  [flang] Fix constant subscript operations (#68352)

Modify ConstantBounds' methods that handle subscripts and bounds to
avoid integer overflows. This is needed to properly handle arrays
with the maximum possible upper bound (INT64_MAX).




More information about the All-commits mailing list