From a4ff6ae76649a8ea2a8e65b123fe13197e305a4b Mon Sep 17 00:00:00 2001 From: Craig Topper Date: Mon, 24 Nov 2014 14:09:52 +0000 Subject: [PATCH] Replace a comment that says 'unreachable' with llvm_unreachable in TableGen AsmWriter output. llvm-svn: 222650 --- llvm/utils/TableGen/AsmWriterEmitter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/utils/TableGen/AsmWriterEmitter.cpp b/llvm/utils/TableGen/AsmWriterEmitter.cpp index 7d26aee..4089ede 100644 --- a/llvm/utils/TableGen/AsmWriterEmitter.cpp +++ b/llvm/utils/TableGen/AsmWriterEmitter.cpp @@ -474,7 +474,7 @@ void AsmWriterEmitter::EmitPrintInstruction(raw_ostream &O) { O << " switch ((Bits >> " << (64-BitsLeft) << ") & " << ((1 << NumBits)-1) << ") {\n" - << " default: // unreachable.\n"; + << " default: llvm_unreachable(\"Invalid command number.\");\n"; // Print out all the cases. for (unsigned i = 0, e = Commands.size(); i != e; ++i) { -- 2.7.4