[flang-commits] [clang] [flang] [llvm] [clang][flang][OpenMP] Fix context selector matching and scoring (PR #224431)
via flang-commits
flang-commits at lists.llvm.org
Sun Oct 11 10:02:40 PDT 2026
================
@@ -5242,6 +5281,14 @@ static mlir::omp::DistributeOp genCompositeDistributeParallelDo(
ConstructQueue::const_iterator parallelItem = std::next(distributeItem);
ConstructQueue::const_iterator doItem = std::next(parallelItem);
+ // Clause expressions follow source nesting even though the composite
+ // operations place PARALLEL outside DISTRIBUTE.
+ mlir::omp::DistributeOperands distributeClauseOps;
+ genDistributeClauses(converter, semaCtx, stmtCtx, distributeItem->clauses,
----------------
MattPD wrote:
Confirmed at 0e411b2: The double-free is fixed in both composite forms.
https://github.com/llvm/llvm-project/pull/224431
More information about the flang-commits
mailing list