[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
Fri Oct 9 01:04:36 PDT 2026
================
@@ -7633,6 +7675,18 @@ static void genMetadirective(lower::AbstractConverter &converter,
}
}
+ if (!hasLoopAssociatedCandidate &&
+ llvm::any_of(reachableVariantSpecs, [](const auto *spec) {
+ return spec && hasDirectiveAssociation(spec->DirId(),
+ llvm::omp::Association::Block);
+ }))
+ associatedBlockEval = spliceAssociatedEval<parser::BlockConstruct>(
----------------
MattPD wrote:
Confirmed at 9c59c04: The scalar and dynamic-substring cases now use the selected TARGET's mapped bindings.
https://github.com/llvm/llvm-project/pull/224431
More information about the flang-commits
mailing list