[flang-commits] [flang] [llvm] [Flang] [OpenMP] Add semantic checks for detach clause in task (PR #119172)
Krzysztof Parzyszek via flang-commits
flang-commits at lists.llvm.org
Tue Dec 10 06:19:24 PST 2024
================
@@ -2739,6 +2739,59 @@ void OmpStructureChecker::Leave(const parser::OmpClauseList &) {
llvm::omp::Clause::OMPC_copyprivate, {llvm::omp::Clause::OMPC_nowait});
}
+ if (GetContext().directive == llvm::omp::Directive::OMPD_task) {
+ if (auto *d_clause{FindClause(llvm::omp::Clause::OMPC_detach)}) {
----------------
kparzysz wrote:
No snake_case please (d_clause).
https://github.com/llvm/llvm-project/pull/119172
More information about the flang-commits
mailing list