[all-commits] [llvm/llvm-project] bdf573: [flang] Change internal errors in RESHAPE runtime ...

Pete Steinfeld via All-commits all-commits at lists.llvm.org
Fri Feb 11 15:52:57 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: bdf573652138fee827e18e636d92975171b566af
      https://github.com/llvm/llvm-project/commit/bdf573652138fee827e18e636d92975171b566af
  Author: Peter Steinfeld <psteinfeld at nvidia.com>
  Date:   2022-02-11 (Fri, 11 Feb 2022)

  Changed paths:
    M flang/runtime/transformational.cpp
    M flang/test/Semantics/reshape.f90

  Log Message:
  -----------
  [flang] Change internal errors in RESHAPE runtime routine to user errors

There are several checks in the runtime routine for the RESHAPE
intrinsic.  Some checks verify things that should have been checked at
compile time while others represent user errors.

This update changes the checks for user errors into calls to "Crash"
which include information about the failing check.  This identifies them
as user errors rather than compiler errors.

I also verified that the checks that remain as internal errors are also
checked by the front end.  I added a test to the front end's RESHAPE
test to complete the checks.

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




More information about the All-commits mailing list