[all-commits] [llvm/llvm-project] 24d21c: [flang][OpenMP] Fix counting generated nests (#183...
Krzysztof Parzyszek via All-commits
all-commits at lists.llvm.org
Mon Mar 2 04:09:10 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 24d21ca03cd2ba7792f72c5acad1d8715b622237
https://github.com/llvm/llvm-project/commit/24d21ca03cd2ba7792f72c5acad1d8715b622237
Author: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: 2026-03-02 (Mon, 02 Mar 2026)
Changed paths:
M flang/lib/Semantics/check-omp-loop.cpp
A flang/test/Semantics/OpenMP/fuse1.f90
Log Message:
-----------
[flang][OpenMP] Fix counting generated nests (#183957)
The code in `CountGeneratedNests` returned std::nullopt if the LOOPRANGE
clause was not present on a FUSE construct. That is incorrect, the
answer should be 1 instead, except in cases where the FUSE itself was
invalid, such as having no loops nested in it.
Returning std::nullopt will not cause any messages to be emitted. The
case of zero loops inside of FUSE will be diagnosed when analyzing the
body of the FUSE construct itself, not when checking a construct in
which the FUSE is nested.
This prevents error messages caused by the same problem from being
emitted for every enclosing loop construct.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list