[clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause. (PR #174646)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Fri Jan 9 13:53:16 PST 2026


================
@@ -16890,6 +16860,12 @@ isNonNegativeIntegerValue(Expr *&ValExpr, Sema &SemaRef, OpenMPClauseKind CKind,
             << ValExpr->getSourceRange();
         return false;
       }
+      if (CKind == OMPC_transparent) {
+        if (Result->isNegative() ||
+            Result >=
+                static_cast<int64_t>(SemaOpenMP::OpenMPImpexType::OMP_Export))
+          SemaRef.Diag(Loc, diag::err_omp_transparent_invalid_value);
+      }
----------------
alexey-bataev wrote:

Wrong place to check, this function is not intended for such checks

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


More information about the cfe-commits mailing list