[all-commits] [llvm/llvm-project] 4235bd: [flang] Make sure dynamic extents and length are r...

Valentin Clement (バレンタイン クレメン) via All-commits all-commits at lists.llvm.org
Thu Aug 18 11:23:38 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4235bd603a335366e873297ed36b41f79b1753f5
      https://github.com/llvm/llvm-project/commit/4235bd603a335366e873297ed36b41f79b1753f5
  Author: Valentin Clement <clementval at gmail.com>
  Date:   2022-08-18 (Thu, 18 Aug 2022)

  Changed paths:
    M flang/lib/Lower/ConvertExpr.cpp
    M flang/test/Lower/array-elemental-calls-char.f90
    M flang/test/Lower/dummy-procedure-character.f90
    M flang/test/Lower/explicit-interface-results-2.f90
    M flang/test/Lower/explicit-interface-results.f90
    M flang/test/Lower/forall/array-constructor.f90
    M flang/test/Lower/host-associated-functions.f90

  Log Message:
  -----------
  [flang] Make sure dynamic extents and length are rounded to 0 if negative

Function returning CHARACTER with adjustable length or dynamic arrays
can have negative length or extents passed to them. This patch makes sure
any negative inputs is rounded to 0.

Reviewed By: vdonaldson

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




More information about the All-commits mailing list