[clang] 61b5d78 - [CIR][NFC] Add missing enum values related to CXXExpansionStmt (#208919)
via cfe-commits
cfe-commits at lists.llvm.org
Sat Jul 11 19:52:32 PDT 2026
Author: Amr Hesham
Date: 2026-07-12T11:52:27+09:00
New Revision: 61b5d7802713e9634750d24456597b28ca85a335
URL: https://github.com/llvm/llvm-project/commit/61b5d7802713e9634750d24456597b28ca85a335
DIFF: https://github.com/llvm/llvm-project/commit/61b5d7802713e9634750d24456597b28ca85a335.diff
LOG: [CIR][NFC] Add missing enum values related to CXXExpansionStmt (#208919)
Add missing enum values related to CXXExpansionStmt
Added:
Modified:
clang/lib/CIR/CodeGen/CIRGenDecl.cpp
clang/lib/CIR/CodeGen/CIRGenStmt.cpp
Removed:
################################################################################
diff --git a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
index ad572f23b3667..df126b96696e0 100644
--- a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
@@ -915,6 +915,7 @@ void CIRGenFunction::emitDecl(const Decl &d, bool evaluateConditionDecl) {
case Decl::ImplicitConceptSpecialization:
case Decl::TopLevelStmt:
case Decl::UsingPack:
+ case Decl::CXXExpansionStmt:
cgm.errorNYI(d.getSourceRange(),
std::string("emitDecl: unhandled decl type: ") +
d.getDeclKindName());
diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index d3acac5801e74..63bfeaa56bc8b 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
@@ -430,6 +430,8 @@ mlir::LogicalResult CIRGenFunction::emitStmt(const Stmt *s,
case Stmt::ObjCAtCatchStmtClass:
case Stmt::ObjCAtFinallyStmtClass:
case Stmt::DeferStmtClass:
+ case Stmt::CXXExpansionStmtPatternClass:
+ case Stmt::CXXExpansionStmtInstantiationClass:
cgm.errorNYI(s->getSourceRange(),
std::string("emitStmt: ") + s->getStmtClassName());
return mlir::failure();
More information about the cfe-commits
mailing list