Skip to content

Commit 6d2366c

Browse files
authored
[Clang][CIR] fix enumeration value 'OMPGroupPrivate' not handled in switch (#159694)
1 parent 9d933c7 commit 6d2366c

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)