summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorReid Kleckner <rnk@google.com>2018-06-04 23:47:29 +0000
committerReid Kleckner <rnk@google.com>2018-06-04 23:47:29 +0000
commitadcaddb6dab27bdf9de701c0a022f59d6af9e5f6 (patch)
tree78e408a05758bd915a7b0b2c10cbaee0101176e1 /llvm/lib/CodeGen
parente2e630b01bdb5d9ec99774c37ec93a8c2d7e232e (diff)
downloadbcm5719-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.cpp18
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);
OpenPOWER on IntegriCloud