https://github.com/erichkeane created 
https://github.com/llvm/llvm-project/pull/185010

The unresolved SYCL kernel call stmt class was added in a different patch that 
didn't deal with CIR.  This patch adds it to the list in teh correct spot, 
which is an unreachable anyway.

>From a811fa02dc72683c3f048bd38e5a2c0ba5b7c102 Mon Sep 17 00:00:00 2001
From: erichkeane <[email protected]>
Date: Fri, 6 Mar 2026 06:18:41 -0800
Subject: [PATCH] [CIR][NFC] Add missing enum element added to CIRGenStmt

The unresolved SYCL kernel call stmt class was added in a different
patch that didn't deal with CIR.  This patch adds it to the list in teh
correct spot, which is an unreachable anyway.
---
 clang/lib/CIR/CodeGen/CIRGenStmt.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp 
b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index ac9948b651894..a33a0b8bdd50c 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
@@ -152,6 +152,7 @@ mlir::LogicalResult CIRGenFunction::emitStmt(const Stmt *s,
   case Stmt::SEHExceptStmtClass:
   case Stmt::SEHFinallyStmtClass:
   case Stmt::MSDependentExistsStmtClass:
+  case Stmt::UnresolvedSYCLKernelCallStmtClass:
     llvm_unreachable("invalid statement class to emit generically");
   case Stmt::BreakStmtClass:
   case Stmt::NullStmtClass:

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to