[clang] [clang][OpenMP] Add error for large expr in collapse clause (PR #138592)
Shafik Yaghmour via cfe-commits
cfe-commits at lists.llvm.org
Fri May 9 16:41:08 PDT 2025
================
@@ -11523,6 +11523,8 @@ def note_omp_collapse_ordered_expr : Note<
"as specified in %select{'collapse'|'ordered'|'collapse' and 'ordered'}0 clause%select{||s}0">;
def err_omp_negative_expression_in_clause : Error<
"argument to '%0' clause must be a %select{non-negative|strictly positive}1 integer value">;
+def err_omp_large_expression_in_clause : Error<
+ "argument to '%0' clause cannot have more than 64 bits size">;
----------------
shafik wrote:
```suggestion
"argument to '%0' clause cannot have more than 64 bits">;
```
https://github.com/llvm/llvm-project/pull/138592
More information about the cfe-commits
mailing list