[all-commits] [llvm/llvm-project] a280d3: [flang] Emit warnings when results of folding some...

Peter Klausler via All-commits all-commits at lists.llvm.org
Sun Oct 30 11:03:40 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a280d3000b58d94161c92a688e820c0d59e889e4
      https://github.com/llvm/llvm-project/commit/a280d3000b58d94161c92a688e820c0d59e889e4
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2022-10-30 (Sun, 30 Oct 2022)

  Changed paths:
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/test/Evaluate/folding05.f90

  Log Message:
  -----------
  [flang] Emit warnings when results of folding some integer intrinsics overflow

When the compile-time result value of a reference to an integer-valued intrinsic
function COUNT, ICHAR, IACHAR, INDEX, SCAN, or VERIFY cannot be represented in
the selected result kind, emit a warning.

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




More information about the All-commits mailing list