================
@@ -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
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to