Author: Aaron Ballman
Date: 2024-07-15T09:31:14-04:00
New Revision: bd04ac0694cc9fb3c43a4acb2f7cd1db08eba673

URL: 
https://github.com/llvm/llvm-project/commit/bd04ac0694cc9fb3c43a4acb2f7cd1db08eba673
DIFF: 
https://github.com/llvm/llvm-project/commit/bd04ac0694cc9fb3c43a4acb2f7cd1db08eba673.diff

LOG: Fix "default label in switch which covers all enumeration values" warning; 
NFC

Amends a972a394afcb276abb3029d0f2753d4403e379c2

Added: 
    

Modified: 
    clang/tools/libclang/CIndex.cpp

Removed: 
    


################################################################################
diff  --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp
index 424c6eeeadae5..fe0be203cb462 100644
--- a/clang/tools/libclang/CIndex.cpp
+++ b/clang/tools/libclang/CIndex.cpp
@@ -8969,8 +8969,6 @@ enum CX_BinaryOperatorKind 
clang_Cursor_getBinaryOpcode(CXCursor C) {
   const Expr *D = getCursorExpr(C);
   if (const auto *BinOp = dyn_cast<BinaryOperator>(D)) {
     switch (BinOp->getOpcode()) {
-    default:
-      return CX_BO_Invalid;
 #define BINARY_OPERATION(Name, Spelling)                                       
\
   case BO_##Name:                                                              
\
     return CX_BO_##Name;


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

Reply via email to