[flang-commits] [clang] [flang] [llvm] [CLANG][OpenMP] Add support for OpenMP6.0 transparent clause (PR #166810)
Alexey Bataev via flang-commits
flang-commits at lists.llvm.org
Fri Dec 26 06:30:16 PST 2025
================
@@ -16989,6 +16992,10 @@ ExprResult SemaOpenMP::VerifyPositiveIntegerConstantInClause(
DSAStack->setAssociatedLoops(Result.getExtValue());
else if (CKind == OMPC_ordered)
DSAStack->setAssociatedLoops(Result.getExtValue());
+
+ if (CKind == OMPC_transparent)
+ if (Result.isNegative() || Result.getExtValue() > 3)
----------------
alexey-bataev wrote:
Better to avoid using the magic constant values
https://github.com/llvm/llvm-project/pull/166810
More information about the flang-commits
mailing list