[llvm] r222650 - Replace a comment that says 'unreachable' with llvm_unreachable in TableGen AsmWriter output.

Craig Topper craig.topper at gmail.com
Mon Nov 24 06:09:52 PST 2014


Author: ctopper
Date: Mon Nov 24 08:09:52 2014
New Revision: 222650

URL: http://llvm.org/viewvc/llvm-project?rev=222650&view=rev
Log:
Replace a comment that says 'unreachable' with llvm_unreachable in TableGen AsmWriter output.

Modified:
    llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp

Modified: llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp?rev=222650&r1=222649&r2=222650&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Mon Nov 24 08:09:52 2014
@@ -474,7 +474,7 @@ void AsmWriterEmitter::EmitPrintInstruct
       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) {





More information about the llvm-commits mailing list