[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:37 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);
+ break;
case llvm::omp::Directive::OMPD_do_simd:
+ PushContextAndClauseSets(
+ dir.source, llvm::omp::Directive::OMPD_end_do_simd);
SetClauseSets(dir.v);
----------------
kiranktp wrote:
I have removed this duplicate call to SetClauseSets(..).
https://github.com/llvm/llvm-project/pull/73486
More information about the flang-commits
mailing list