[clang] 7e8aba2 - [clang][OpenMP] `masked` and `master` are not capturing (#106787)

via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 2 14:56:17 PDT 2024


Author: Krzysztof Parzyszek
Date: 2024-09-02T16:56:14-05:00
New Revision: 7e8aba2b993014d975cf35f1f9831c951c4ab292

URL: https://github.com/llvm/llvm-project/commit/7e8aba2b993014d975cf35f1f9831c951c4ab292
DIFF: https://github.com/llvm/llvm-project/commit/7e8aba2b993014d975cf35f1f9831c951c4ab292.diff

LOG: [clang][OpenMP] `masked` and `master` are not capturing (#106787)

Added: 
    

Modified: 
    clang/lib/Basic/OpenMPKinds.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Basic/OpenMPKinds.cpp b/clang/lib/Basic/OpenMPKinds.cpp
index 2910f4ed642d16..630a8898aa2293 100644
--- a/clang/lib/Basic/OpenMPKinds.cpp
+++ b/clang/lib/Basic/OpenMPKinds.cpp
@@ -799,8 +799,6 @@ void clang::getOpenMPCaptureRegions(
     case OMPD_dispatch:
     case OMPD_distribute:
     case OMPD_for:
-    case OMPD_masked:
-    case OMPD_master:
     case OMPD_ordered:
     case OMPD_scope:
     case OMPD_sections:
@@ -813,6 +811,9 @@ void clang::getOpenMPCaptureRegions(
       // leafs from that directive have specific regions, then these directives
       // add no additional regions.
       return true;
+    case OMPD_masked:
+    case OMPD_master:
+      return false;
     default:
       llvm::errs() << getOpenMPDirectiveName(LKind) << '\n';
       llvm_unreachable("Unexpected directive");


        


More information about the cfe-commits mailing list