[flang-commits] [flang] [llvm] [Flang] [OpenMP] Add semantic checks for detach clause in task (PR #119172)

Thirumalai Shaktivel via flang-commits flang-commits at lists.llvm.org
Tue Dec 10 20:19:42 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)}) {
----------------
Thirumalai-Shaktivel wrote:

Good catch, I forgot to update this.

https://github.com/llvm/llvm-project/pull/119172


More information about the flang-commits mailing list