https://github.com/AmrDeveloper updated 
https://github.com/llvm/llvm-project/pull/159631

>From eea486a2acb2ba832f20aad73542b50aae59e6d3 Mon Sep 17 00:00:00 2001
From: AmrDeveloper <am...@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 <am...@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());

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to