Skip to content

Conversation

jiang1997
Copy link
Contributor

Handle OMPFuseDirectiveClass introduced in cd4c528 to fix -Wswitch warning in CIRGenStmt.cpp.

Handle OMPFuseDirectiveClass introduced in cd4c528 to fix `-Wswitch` warning in CIRGenStmt.cpp.
@jiang1997 jiang1997 marked this pull request as ready for review September 29, 2025 20:04
@llvmbot llvmbot added clang Clang issues not falling into any other category ClangIR Anything related to the ClangIR project labels Sep 29, 2025
@llvmbot
Copy link
Member

llvmbot commented Sep 29, 2025

@llvm/pr-subscribers-clangir

@llvm/pr-subscribers-clang

Author: None (jiang1997)

Changes

Handle OMPFuseDirectiveClass introduced in cd4c528 to fix -Wswitch warning in CIRGenStmt.cpp.


Full diff: https://github.com/llvm/llvm-project/pull/161269.diff

1 Files Affected:

  • (modified) clang/lib/CIR/CodeGen/CIRGenStmt.cpp (+1)
diff --git a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
index e842892d085d2..1af89a3e4316d 100644
--- a/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
+++ b/clang/lib/CIR/CodeGen/CIRGenStmt.cpp
@@ -280,6 +280,7 @@ mlir::LogicalResult CIRGenFunction::emitStmt(const Stmt *s,
   case Stmt::OMPReverseDirectiveClass:
   case Stmt::OMPInterchangeDirectiveClass:
   case Stmt::OMPAssumeDirectiveClass:
+  case Stmt::OMPFuseDirectiveClass:
   case Stmt::OMPMaskedDirectiveClass:
   case Stmt::OMPStripeDirectiveClass:
   case Stmt::ObjCAtCatchStmtClass:

@andykaylor
Copy link
Contributor

This duplicates #161246

@andykaylor
Copy link
Contributor

And #161278

@jiang1997 jiang1997 closed this Sep 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
clang Clang issues not falling into any other category ClangIR Anything related to the ClangIR project
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants