[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:09 PDT 2025
================
@@ -15901,6 +15901,13 @@ ExprResult SemaOpenMP::VerifyPositiveIntegerConstantInClause(
<< E->getSourceRange();
return ExprError();
}
+
+ if (!Result.isRepresentableByInt64()) {
----------------
shafik wrote:
So these are always 64 bit integers? This: https://www.openmp.org/spec-html/5.2/openmpsu30.html#x60-620004.4.3, "expression of integer type"
https://github.com/llvm/llvm-project/pull/138592
More information about the cfe-commits
mailing list