[clang] [CIR][NFC] Add missing enum element added to CIRGenStmt (PR #185010)
via cfe-commits
cfe-commits at lists.llvm.org
Fri Mar 6 06:26:57 PST 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
@llvm/pr-subscribers-clangir
Author: Erich Keane (erichkeane)
<details>
<summary>Changes</summary>
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.
---
Full diff: https://github.com/llvm/llvm-project/pull/185010.diff
1 Files Affected:
- (modified) clang/lib/CIR/CodeGen/CIRGenStmt.cpp (+1)
``````````diff
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:
``````````
</details>
https://github.com/llvm/llvm-project/pull/185010
More information about the cfe-commits
mailing list