[clang] [clang][OpenMP] Add error for large expr in collapse clause (PR #138592)
Aaron Ballman via cfe-commits
cfe-commits at lists.llvm.org
Mon May 12 04:24:25 PDT 2025
================
@@ -11526,6 +11526,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">;
----------------
AaronBallman wrote:
```suggestion
"argument to '%0' clause requires a value that can be represented by a 64-bit integer">;
```
https://github.com/llvm/llvm-project/pull/138592
More information about the cfe-commits
mailing list