[flang-commits] [flang] [llvm] [Flang] Add semantic check for usage of COPYPRIVATE and NOWAIT clauses (PR #73486)

Kiran Kumar T P via flang-commits flang-commits at lists.llvm.org
Tue Nov 28 23:18:13 PST 2023


================
@@ -745,7 +745,12 @@ void OmpStructureChecker::Enter(const parser::OmpEndLoopDirective &x) {
   // 2.7.1 end-do -> END DO [nowait-clause]
   // 2.8.3 end-do-simd -> END DO SIMD [nowait-clause]
   case llvm::omp::Directive::OMPD_do:
+    PushContextAndClauseSets(dir.source, llvm::omp::Directive::OMPD_end_do);
+    SetClauseSets(dir.v);
----------------
kiranktp wrote:

Infact we do not need to explicitly set clausesets. PushContextAndClauseSets will anyway set the clause sets. I will remove this duplication.

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


More information about the flang-commits mailing list