[clang] [CIR][NFC] Fix value 'OMPFuseDirectiveClass' not handled warning (PR #161246)

Amr Hesham via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 29 10:41:47 PDT 2025


https://github.com/AmrDeveloper created https://github.com/llvm/llvm-project/pull/161246

Fix enumeration value 'OMPFuseDirectiveClass' not handled in switch warning

>From c89580288f97de717c7823a0e557d4e143536ee0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E2=80=9CAmr?= <amr96 at programmer.net>
Date: Mon, 29 Sep 2025 19:40:43 +0200
Subject: [PATCH] [CIR][NFC] Fix enumeration value 'OMPFuseDirectiveClass' not
 handled in switch

---
 clang/lib/CIR/CodeGen/CIRGenStmt.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index e842892d085d2..5a3c4427c2f6f 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
@@ -279,6 +279,7 @@ mlir::LogicalResult CIRGenFunction::emitStmt(const Stmt *s,
   case Stmt::OMPGenericLoopDirectiveClass:
   case Stmt::OMPReverseDirectiveClass:
   case Stmt::OMPInterchangeDirectiveClass:
+  case Stmt::OMPFuseDirectiveClass:
   case Stmt::OMPAssumeDirectiveClass:
   case Stmt::OMPMaskedDirectiveClass:
   case Stmt::OMPStripeDirectiveClass:



More information about the cfe-commits mailing list