diff options
author | Valentin Clement <clementval@gmail.com> | 2022-07-01 10:36:45 +0200 |
---|---|---|
committer | Valentin Clement <clementval@gmail.com> | 2022-07-01 10:37:15 +0200 |
commit | 0dd4fb0408ed980de2c100905e68a4adf9987c61 (patch) | |
tree | 6208e42903e689e83d4838b505457b781d4149fd /clang/lib/Basic/LangOptions.cpp | |
parent | de3fb0f29ecfd4e7327f2ae409936f8b4f251201 (diff) | |
download | llvm-0dd4fb0408ed980de2c100905e68a4adf9987c61.zip llvm-0dd4fb0408ed980de2c100905e68a4adf9987c61.tar.gz llvm-0dd4fb0408ed980de2c100905e68a4adf9987c61.tar.bz2 |
[flang] Fix for broken/degenerate forall case
Fix for broken/degenerate forall case where there is no assignment to an
array under the explicit iteration space. While this is a multiple
assignment, semantics only raises a warning.
The fix is to add a test that the explicit space has any sort of array
to be updated, and if not then the do_loop nest will not require a
terminator to forward array values to the next iteration.
This patch is part of the upstreaming effort from fir-dev branch.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D128973
Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
Diffstat (limited to 'clang/lib/Basic/LangOptions.cpp')
0 files changed, 0 insertions, 0 deletions