[llvm-branch-commits] [clang] [clang][OpenMP] Remove compound directives from `checkNestingOfRegions` (PR #98387)

Alexey Bataev via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Wed Jul 10 14:28:02 PDT 2024


================
@@ -4828,26 +4835,28 @@ static bool checkNestingOfRegions(Sema &SemaRef, const DSAStackTy *Stack,
         << (SemaRef.LangOpts.OpenMP >= 50 ? 1 : 0);
     return CurrentRegion != OMPD_simd;
   }
-  if (ParentRegion == OMPD_atomic) {
+
+  if (EnclosingConstruct == OMPD_atomic) {
----------------
alexey-bataev wrote:

Remove extra empty line here and in other places

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


More information about the llvm-branch-commits mailing list