Skip to content

Commit 292906c

Browse files
committed
[Clang][CIR] fix enumeration value 'OMPGroupPrivate' not handled in switch
1 parent 67f43c6 commit 292906c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

clang/lib/CIR/CodeGen/CIRGenDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,9 @@ void CIRGenFunction::emitDecl(const Decl &d, bool evaluateConditionDecl) {
665665
case Decl::ImplicitConceptSpecialization:
666666
case Decl::TopLevelStmt:
667667
case Decl::UsingPack:
668-
case Decl::OMPDeclareReduction:
669668
case Decl::OMPDeclareMapper:
669+
case Decl::OMPDeclareReduction:
670+
case Decl::OMPGroupPrivate:
670671
cgm.errorNYI(d.getSourceRange(),
671672
std::string("emitDecl: unhandled decl type: ") +
672673
d.getDeclKindName());

0 commit comments

Comments
 (0)