Remove unnecessary default cases in switches that cover all enum values.
[oota-llvm.git] / utils / TableGen / CodeGenDAGPatterns.cpp
index dbf166262bb6ea211f5f7e96e1e9b333344ce419..3570f8df65eb802457ed6c664199b4e52f869e14 100644 (file)
@@ -839,7 +839,6 @@ bool SDTypeConstraint::ApplyTypeConstraint(TreePatternNode *N,
   TreePatternNode *NodeToApply = getOperandNum(OperandNo, N, NodeInfo, ResNo);
 
   switch (ConstraintType) {
-  default: assert(0 && "Unknown constraint type!");
   case SDTCisVT:
     // Operand must be a particular type.
     return NodeToApply->UpdateNodeType(ResNo, x.SDTCisVT_Info.VT, TP);