[clang] [OpenACC] Private Clause on Compute Constructs (PR #90521)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 30 07:57:08 PDT 2024
================
@@ -958,13 +931,14 @@ Parser::OpenACCClauseParseResult Parser::ParseOpenACCClauseParams(
case OpenACCClauseKind::Link:
case OpenACCClauseKind::NoCreate:
case OpenACCClauseKind::Present:
- case OpenACCClauseKind::Private:
case OpenACCClauseKind::UseDevice:
- if (ParseOpenACCClauseVarList(ClauseKind)) {
- Parens.skipToEnd();
- return OpenACCCanContinue();
- }
+ ParseOpenACCVarList();
+ break;
+ case OpenACCClauseKind::Private: {
+ llvm::SmallVector<Expr *> Vars = ParseOpenACCVarList();
+ ParsedClause.setVarListDetails(std::move(Vars));
----------------
alexey-bataev wrote:
You mean you want it to be destroyed immediately after setVarListDetails()?
https://github.com/llvm/llvm-project/pull/90521
More information about the cfe-commits
mailing list