From 0f12a5c2a48985b120f35986104ae899f49c9f0d Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Fri, 8 Mar 2013 17:03:19 +0000 Subject: [PATCH] Remove default from fully covered switch. llvm-svn: 176703 --- llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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; -- 2.7.4