Skip to content

Commit 992e754

Browse files
committed
Fix MSVC "not all control paths return a value" warning. NFC.
1 parent 9e831d5 commit 992e754

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

clang-tools-extra/clangd/refactor/tweaks/SwapBinaryOperands.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ BinaryOperatorKind swapOperator(const BinaryOperatorKind Opcode) {
126126
case BinaryOperatorKind::BO_OrAssign:
127127
return Opcode;
128128
}
129+
llvm_unreachable("Unknown BinaryOperatorKind enum");
129130
}
130131

131132
/// Swaps the operands to a binary operator

0 commit comments

Comments
 (0)