[llvm-commits] [llvm] r153997 - /llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp
Craig Topper
craig.topper at gmail.com
Tue Apr 3 21:55:46 PDT 2012
Author: ctopper
Date: Tue Apr 3 23:55:46 2012
New Revision: 153997
URL: http://llvm.org/viewvc/llvm-project?rev=153997&view=rev
Log:
Convert assert(false) followed by a return to llvm_unreachable
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=153997&r1=153996&r2=153997&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/AsmWriterEmitter.cpp Tue Apr 3 23:55:46 2012
@@ -669,8 +669,7 @@
O << " I = OpMap.begin(), E = OpMap.end(); I != E; ++I)\n";
O << " if (I->first == Name)\n";
O << " return I->second;\n";
- O << " assert(false && \"Operand not in map!\");\n";
- O << " return 0;\n";
+ O << " llvm_unreachable(\"Operand not in map!\");\n";
O << "}\n\n";
}
More information about the llvm-commits
mailing list