[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:12 PDT 2024


================
@@ -11099,6 +11099,19 @@ OpenACCClause *TreeTransform<Derived>::TransformOpenACCClause(
     ParsedClause.setDefaultDetails(
         cast<OpenACCDefaultClause>(OldClause)->getDefaultClauseKind());
     break;
+  case OpenACCClauseKind::If: {
+    Expr *Cond = const_cast<Expr *>(
----------------
alexey-bataev wrote:

Maybe better to drop const in `const OpenACCClause *OldClause`?

https://github.com/llvm/llvm-project/pull/88411


More information about the cfe-commits mailing list