[clang] [OpenACC] Implement 'if' clause for Compute Constructs (PR #88411)
Alexey Bataev via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 11 12:46:13 PDT 2024
================
@@ -7425,6 +7425,12 @@ void ASTRecordWriter::writeOpenACCClause(const OpenACCClause *C) {
writeEnum(DC->getDefaultClauseKind());
return;
}
+ case OpenACCClauseKind::If: {
+ const auto *IC = cast<OpenACCIfClause>(C);
+ writeSourceLocation(IC->getLParenLoc());
+ AddStmt(const_cast<Expr *>(IC->getConditionExpr()));
----------------
alexey-bataev wrote:
And drop const in writeOpenACCClause param decl?
https://github.com/llvm/llvm-project/pull/88411
More information about the cfe-commits
mailing list