Remove default in fully-covered switch (to fix Clang -Werror -Wcovered-switch-default)
authorDavid Blaikie <dblaikie@gmail.com>
Mon, 13 Apr 2015 16:37:50 +0000 (16:37 +0000)
committerDavid Blaikie <dblaikie@gmail.com>
Mon, 13 Apr 2015 16:37:50 +0000 (16:37 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234760 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp

index e4a796e..e4fc3ff 100644 (file)
@@ -1649,7 +1649,6 @@ void DAGTypeLegalizer::ExpandIntRes_ADDSUB(SDNode *N,
     SDValue OVF = Lo.getValue(1);
 
     switch (BoolType) {
-    default:
     case TargetLoweringBase::UndefinedBooleanContent:
       OVF = DAG.getNode(ISD::AND, dl, NVT, DAG.getConstant(1, NVT), OVF);
       // Fallthrough