================
@@ -13647,10 +13693,7 @@ StmtResult
SemaOpenMP::ActOnOpenMPTeamsDirective(ArrayRef<OMPClause *> Clauses,
if (!AStmt)
return StmtError();
- if (!checkNumExprsInClause<OMPNumTeamsClause>(
- *this, Clauses, /*MaxNum=*/1, diag::err_omp_multi_expr_not_allowed)
||
- !checkNumExprsInClause<OMPThreadLimitClause>(
- *this, Clauses, /*MaxNum=*/1, diag::err_omp_multi_expr_not_allowed))
+ if (checkNumExprsInClauses(*this, Clauses))
----------------
kevinsala wrote:
The function is doing significantly different checks than originally. All the
logic in `ActOnOpenMPTargetTeamsDirective` is moved inside the function. An NFC
PR will require changes that then I have to undo/modify in this current PR.
https://github.com/llvm/llvm-project/pull/206412
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits