From: Benjamin Kramer Date: Fri, 8 Mar 2013 17:03:19 +0000 (+0000) Subject: Remove default from fully covered switch. X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0f12a5c2a48985b120f35986104ae899f49c9f0d;p=platform%2Fupstream%2Fllvm.git Remove default from fully covered switch. llvm-svn: 176703 --- diff --git a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp index 743a9da..51cc254 100644 --- a/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp @@ -3633,8 +3633,7 @@ void SelectionDAGLegalize::ExpandNode(SDNode *Node) { // illegal; expand it into a SELECT_CC. EVT VT = Node->getValueType(0); int TrueValue; - switch(TLI.getBooleanContents(VT.isVector())) { - default: assert(!"Unhandled BooleanContent value"); + switch (TLI.getBooleanContents(VT.isVector())) { case TargetLowering::ZeroOrOneBooleanContent: case TargetLowering::UndefinedBooleanContent: TrueValue = 1;