diff options
| author | Reid Kleckner <rnk@google.com> | 2018-06-04 23:47:29 +0000 |
|---|---|---|
| committer | Reid Kleckner <rnk@google.com> | 2018-06-04 23:47:29 +0000 |
| commit | adcaddb6dab27bdf9de701c0a022f59d6af9e5f6 (patch) | |
| tree | 78e408a05758bd915a7b0b2c10cbaee0101176e1 /llvm/lib/CodeGen | |
| parent | e2e630b01bdb5d9ec99774c37ec93a8c2d7e232e (diff) | |
| download | bcm5719-llvm-adcaddb6dab27bdf9de701c0a022f59d6af9e5f6.tar.gz bcm5719-llvm-adcaddb6dab27bdf9de701c0a022f59d6af9e5f6.zip | |
Fix -Wcovered-switch-default warning and clang-format it
llvm-svn: 333967
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp b/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp index 4710c14d822..50953275d33 100644 --- a/llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp +++ b/llvm/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); |

