From: David Blaikie Date: Mon, 13 Apr 2015 16:37:50 +0000 (+0000) Subject: Remove default in fully-covered switch (to fix Clang -Werror -Wcovered-switch-default) X-Git-Url: http://plrg.eecs.uci.edu/git/?p=oota-llvm.git;a=commitdiff_plain;h=178edfea07a892984853c93c54aa349bb55cd6d8 Remove default in fully-covered switch (to fix Clang -Werror -Wcovered-switch-default) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234760 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp index e4a796e5478..e4fc3ff318f 100644 --- a/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp +++ b/lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp @@ -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