================
@@ -72,3 +92,9 @@ void OpenACCClausePrinter::VisitDefaultClause(const 
OpenACCDefaultClause &C) {
 void OpenACCClausePrinter::VisitIfClause(const OpenACCIfClause &C) {
   OS << "if(" << C.getConditionExpr() << ")";
 }
+
+void OpenACCClausePrinter::VisitSelfClause(const OpenACCSelfClause &C) {
+  OS << "self";
+  if (const Expr *CondExpr = C.getConditionExpr())
----------------
erichkeane wrote:

No, all that does is check if `CondExpr` is `nullptr`, so this is doing the 
same thing.  I thought this interface makes sense (that is, 'null' means no 
condition).

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

Reply via email to