[clang] [CIR][NFC] Fix Missing Decl::OMPGroupPrivate warning (PR #159631)
Amr Hesham via cfe-commits
cfe-commits at lists.llvm.org
Fri Sep 19 11:29:37 PDT 2025
https://github.com/AmrDeveloper updated https://github.com/llvm/llvm-project/pull/159631
>From eea486a2acb2ba832f20aad73542b50aae59e6d3 Mon Sep 17 00:00:00 2001
From: AmrDeveloper <amr96 at programmer.net>
Date: Thu, 18 Sep 2025 21:26:53 +0200
Subject: [PATCH 1/2] [CIR][NFC] Fix Missing Decl::OMPGroupPrivate warning
---
clang/lib/CIR/CodeGen/CIRGenDecl.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
index d028a98eaad02..63e1f8cd24982 100644
--- a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
@@ -618,6 +618,7 @@ void CIRGenFunction::emitDecl(const Decl &d, bool evaluateConditionDecl) {
case Decl::MSGuid: // __declspec(uuid("..."))
case Decl::TemplateParamObject:
case Decl::OMPThreadPrivate:
+ case Decl::OMPGroupPrivate:
case Decl::OMPAllocate:
case Decl::OMPCapturedExpr:
case Decl::OMPRequires:
>From 6d29e8332d08fe5d5fc6dc20e94cc4d8ef5cc854 Mon Sep 17 00:00:00 2001
From: AmrDeveloper <amr96 at programmer.net>
Date: Fri, 19 Sep 2025 20:29:14 +0200
Subject: [PATCH 2/2] Remove Decl::OMPGroupPrivate from wrong position
---
clang/lib/CIR/CodeGen/CIRGenDecl.cpp | 1 -
1 file changed, 1 deletion(-)
diff --git a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
index 63e1f8cd24982..32d5f7525524b 100644
--- a/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenDecl.cpp
@@ -668,7 +668,6 @@ void CIRGenFunction::emitDecl(const Decl &d, bool evaluateConditionDecl) {
case Decl::UsingPack:
case Decl::OMPDeclareMapper:
case Decl::OMPDeclareReduction:
- case Decl::OMPGroupPrivate:
cgm.errorNYI(d.getSourceRange(),
std::string("emitDecl: unhandled decl type: ") +
d.getDeclKindName());
More information about the cfe-commits
mailing list