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

Can we add an assert that Cond is not null?
(I guess the logic here is that if the if clause is invalid, it will never be 
transformed?)

https://github.com/llvm/llvm-project/pull/88411
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to