Remove unnecessary default cases in switches that cover all enum values.
[oota-llvm.git] / utils / TableGen / AsmMatcherEmitter.cpp
index bdd1c4970ceba45e14765729548f8b397133e71e..2dd4c7a22816bc768b976a67507730fcdd45b12c 100644 (file)
@@ -1482,7 +1482,6 @@ void MatchableInfo::BuildAliasResultOperands() {
       // Find out what operand from the asmparser that this MCInst operand
       // comes from.
       switch (CGA.ResultOperands[AliasOpNo].Kind) {
-      default: assert(0 && "unexpected InstAlias operand kind");
       case CodeGenInstAlias::ResultOperand::K_Record: {
         StringRef Name = CGA.ResultOperands[AliasOpNo].getName();
         int SrcOperand = FindAsmOperand(Name, SubIdx);