[clang] 8c9a62b - [CIR][NFC] Add missing enum element added to CIRGenStmt (#185010)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 07:07:23 PST 2026
Author: Erich Keane
Date: 2026-03-06T07:07:18-08:00
New Revision: 8c9a62b9e47a3c3d31f392e7ad628d8dd7d097aa
URL: https://github.com/llvm/llvm-project/commit/8c9a62b9e47a3c3d31f392e7ad628d8dd7d097aa
DIFF: https://github.com/llvm/llvm-project/commit/8c9a62b9e47a3c3d31f392e7ad628d8dd7d097aa.diff
LOG: [CIR][NFC] Add missing enum element added to CIRGenStmt (#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.
Added:
Modified:
clang/lib/CIR/CodeGen/CIRGenStmt.cpp
Removed:
################################################################################
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:
More information about the cfe-commits
mailing list