[clang] [clang][OpenMP] Add error for large expr in collapse clause (PR #138592)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Sat May 10 08:05:34 PDT 2025
================
@@ -15901,6 +15901,13 @@ ExprResult SemaOpenMP::VerifyPositiveIntegerConstantInClause(
<< E->getSourceRange();
return ExprError();
}
+
+ if (!Result.isRepresentableByInt64()) {
----------------
AmrDeveloper wrote:
In our implementation, yes, because we const evaluate the value to APInt and it store the value in i64
https://github.com/llvm/llvm-project/pull/138592
More information about the cfe-commits
mailing list