[clang] [OpenACC] Implement Default clause for Compute Constructs (PR #88135)

Alexey Bataev via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 9 11:02:25 PDT 2024


================
@@ -66,6 +96,8 @@ template <class Impl> class OpenACCClauseVisitor {
 
     switch (C->getClauseKind()) {
     case OpenACCClauseKind::Default:
+      VisitOpenACCDefaultClause(*static_cast<const OpenACCDefaultClause *>(C));
----------------
alexey-bataev wrote:

Can you make it just `cast<OpenACCDefaultClause>(C)`?

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


More information about the cfe-commits mailing list