[clang] [SYCL] Correct incomplete AST visitation for UnresolvedSYCLKernelCallStmt. (PR #185531)

Mariya Podchishchaeva via cfe-commits cfe-commits at lists.llvm.org
Tue Mar 10 01:39:59 PDT 2026


================
@@ -845,6 +846,14 @@ class ASTNodeTraverser
     }
   }
 
+  void
+  VisitUnresolvedSYCLKernelCallStmt(const UnresolvedSYCLKernelCallStmt *Node) {
+    Visit(Node->getOriginalStmt());
+    if (Traversal != TK_IgnoreUnlessSpelledInSource) {
+      Visit(Node->getKernelLaunchIdExpr());
+    }
----------------
Fznamznon wrote:

style nit
```suggestion
    if (Traversal != TK_IgnoreUnlessSpelledInSource)
      Visit(Node->getKernelLaunchIdExpr());
```

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


More information about the cfe-commits mailing list