[all-commits] [llvm/llvm-project] 45a8ca: [flang] Fix reversed comparison in RESHAPE() runtime
Peter Klausler via All-commits
all-commits at lists.llvm.org
Fri Nov 26 12:34:15 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 45a8caf1cdf6a9cbe6dd183df62f22c57e3310ae
https://github.com/llvm/llvm-project/commit/45a8caf1cdf6a9cbe6dd183df62f22c57e3310ae
Author: Peter Klausler <pklausler at nvidia.com>
Date: 2021-11-26 (Fri, 26 Nov 2021)
Changed paths:
M flang/runtime/transformational.cpp
Log Message:
-----------
[flang] Fix reversed comparison in RESHAPE() runtime
RESHAPE() fails inappropriately at runtime if the source array
is larger than the result -- which is perfectly valid -- because
of an obviously reversed comparison of their numbers of elements
is activating the runtime asserts meant for the opposite case
(source smaller than result).
Differential Revision: https://reviews.llvm.org/D114474
More information about the All-commits
mailing list