From c7cfe4c775dadb480622086d3ab8f4d5522eab0c Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Mon, 4 Jun 2018 23:47:29 +0000 Subject: [PATCH] Fix -Wcovered-switch-default warning and clang-format it llvm-svn: 333967 --- lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 4710c14d822..50953275d33 100644 --- a/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/lib/CodeGen/SelectionDAG/DAGCombiner.cpp @@ -2196,16 +2196,14 @@ SDValue DAGCombiner::visitADDC(SDNode *N) { static SDValue flipBoolean(SDValue V, const SDLoc &DL, EVT VT, SelectionDAG &DAG, const TargetLowering &TLI) { SDValue Cst; - switch(TLI.getBooleanContents(VT)) { - case TargetLowering::ZeroOrOneBooleanContent: - case TargetLowering::UndefinedBooleanContent: - Cst = DAG.getConstant(1, DL, VT); - break; - case TargetLowering::ZeroOrNegativeOneBooleanContent: - Cst = DAG.getConstant(-1, DL, VT); - break; - default: - llvm_unreachable("Unsupported boolean content"); + switch (TLI.getBooleanContents(VT)) { + case TargetLowering::ZeroOrOneBooleanContent: + case TargetLowering::UndefinedBooleanContent: + Cst = DAG.getConstant(1, DL, VT); + break; + case TargetLowering::ZeroOrNegativeOneBooleanContent: + Cst = DAG.getConstant(-1, DL, VT); + break; } return DAG.getNode(ISD::XOR, DL, VT, V, Cst);