[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
Author: Peter Steinfeld <psteinfeld at nvidia.com>
Date: 2022-02-11 (Fri, 11 Feb 2022)
[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