[all-commits] [llvm/llvm-project] 73a0ae: [flang] Fix looping on LEN type parameter usage

Peter Klausler via All-commits all-commits at lists.llvm.org
Thu Jun 22 07:05:48 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 73a0ae021ec6112911b98025055b8a2e881b1376
      https://github.com/llvm/llvm-project/commit/73a0ae021ec6112911b98025055b8a2e881b1376
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-06-22 (Thu, 22 Jun 2023)

  Changed paths:
    M flang/include/flang/Evaluate/common.h
    M flang/lib/Evaluate/fold-integer.cpp
    A flang/test/Semantics/pdt01.f90

  Log Message:
  -----------
  [flang] Fix looping on LEN type parameter usage

When a LEN type parameter of one PDT is being used as the value
of a LEN type parameter in another PDT, expression rewriting can
loop infinitely due to an incorrect assumption that the same PDT's
parameters are being referenced.

Fixes LLVM bug https://github.com/llvm/llvm-project/issues/63198

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




More information about the All-commits mailing list