[clang] [CIR][NFC] Fix value 'OMPFuseDirectiveClass' not handled warning (PR #161246)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 29 10:42:24 PDT 2025
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clangir
@llvm/pr-subscribers-clang
Author: Amr Hesham (AmrDeveloper)
<details>
<summary>Changes</summary>
Fix enumeration value 'OMPFuseDirectiveClass' not handled in switch warning
---
Full diff: https://github.com/llvm/llvm-project/pull/161246.diff
1 Files Affected:
- (modified) clang/lib/CIR/CodeGen/CIRGenStmt.cpp (+1)
``````````diff
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:
``````````
</details>
https://github.com/llvm/llvm-project/pull/161246
More information about the cfe-commits
mailing list