[all-commits] [llvm/llvm-project] 78d600: [flang] Deal with negative character lengths in se...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed Nov 17 09:49:30 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 78d60094c741ef96927424ad92d4ffcf4b025531
      https://github.com/llvm/llvm-project/commit/78d60094c741ef96927424ad92d4ffcf4b025531
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2021-11-17 (Wed, 17 Nov 2021)

  Changed paths:
    M flang/include/flang/Evaluate/tools.h
    M flang/lib/Evaluate/variable.cpp
    M flang/lib/Semantics/runtime-type-info.cpp

  Log Message:
  -----------
  [flang] Deal with negative character lengths in semantics

Fortran defines LEN(X) = 0 after CHARACTER(LEN=-1)::X so
apply MAX(0, ...) to character length expressions.

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




More information about the All-commits mailing list