================
@@ -4790,6 +4806,110 @@ bool
Parser::ParseOpenMPReservedLocator(OpenMPClauseKind Kind,
return false;
}
+bool Parser::ParseOpenMPAdjustArgsBound(OMPAdjustArgsItem::Bound &Bound) {
+ // 'omp_num_args' is recognised by spelling: OpenMP 6.0 [5.2.1] gives it no
+ // declaration, so it is never looked up.
+ if (Tok.isNot(tok::identifier) ||
+ !Tok.getIdentifierInfo()->isStr("omp_num_args")) {
+ ExprResult E = ParseAssignmentExpression();
+ if (E.isInvalid())
----------------
alexey-bataev wrote:
```suggestion
E = Actions.ActOnFinishFullExpr(E.get(), E.get()->getExprLoc(),
/*DiscardedValue=*/false);
if (E.isInvalid())
```
https://github.com/llvm/llvm-project/pull/225081
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits