[PATCH] D158266: [OpenMP] Patch for Support to loop bind clause : Checking Parent Region

Alexey Bataev via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 27 05:52:48 PDT 2023


ABataev added inline comments.


================
Comment at: clang/lib/Sema/SemaOpenMP.cpp:6167-6183
+      if (isOpenMPWorksharingDirective(ParentDirective) ||
+          ParentDirective == OMPD_loop) {
+        Diag(StartLoc, diag::err_omp_prohibited_region)
+            << true << getOpenMPDirectiveName(ParentDirective) << 1
+            << getOpenMPDirectiveName(Kind);
+      }
       Kind = OMPD_for;
----------------
Can you move these checks to checkNestingOfRegions() function?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D158266/new/

https://reviews.llvm.org/D158266



More information about the cfe-commits mailing list