llvm.org GIT mirror llvm / 577a768
Replace some 'unreachable' comments with llvm_unreachable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225112 91177308-0d34-0410-b5e6-96231b3b80d8 Craig Topper 4 years ago
1 changed file(s) with 2 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
28332833 OS << " // Find the appropriate table for this asm variant.\n";
28342834 OS << " const MatchEntry *Start, *End;\n";
28352835 OS << " switch (VariantID) {\n";
2836 OS << " default: // unreachable\n";
2836 OS << " default: llvm_unreachable(\"invalid variant!\");\n";
28372837 for (unsigned VC = 0; VC != VariantCount; ++VC) {
28382838 Record *AsmVariant = Target.getAsmParserVariant(VC);
28392839 int AsmVariantNo = AsmVariant->getValueAsInt("Variant");
28872887 OS << " // Find the appropriate table for this asm variant.\n";
28882888 OS << " const MatchEntry *Start, *End;\n";
28892889 OS << " switch (VariantID) {\n";
2890 OS << " default: // unreachable\n";
2890 OS << " default: llvm_unreachable(\"invalid variant!\");\n";
28912891 for (unsigned VC = 0; VC != VariantCount; ++VC) {
28922892 Record *AsmVariant = Target.getAsmParserVariant(VC);
28932893 int AsmVariantNo = AsmVariant->getValueAsInt("Variant");