diff --git a/clang/tools/libclang/CIndex.cpp b/clang/tools/libclang/CIndex.cpp index 424c6eeeadae5d..fe0be203cb4622 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(D)) { switch (BinOp->getOpcode()) { - default: - return CX_BO_Invalid; #define BINARY_OPERATION(Name, Spelling) \ case BO_##Name: \ return CX_BO_##Name;