[flang-commits] [flang] [Flang][OpenMP] Add semantic support for Loop Sequences and OpenMP loop fuse (PR #161213)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Wed Oct 1 05:07:07 PDT 2025
================
@@ -418,19 +420,20 @@ void OmpStructureChecker::CheckDistLinear(
// Match the loop index variables with the collected symbols from linear
// clauses.
- auto &optLoopCons = std::get<std::optional<parser::NestedConstruct>>(x.t);
- if (optLoopCons.has_value()) {
+ auto &loopConsList = std::get<std::list<parser::NestedConstruct>>(x.t);
+ for (auto &loopCons : loopConsList) {
+ std::int64_t collapseVal_ = collapseVal;
----------------
Meinersbur wrote:
```suggestion
std::int64_t collapseVal_{collapseVal};
```
Use a more descriptive name, e.g. `curCollapseVal`
https://github.com/llvm/llvm-project/pull/161213
More information about the flang-commits
mailing list