1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00

Convert assert(false) followed by a return to llvm_unreachable

llvm-svn: 153997
This commit is contained in:
Craig Topper 2012-04-04 04:55:46 +00:00
parent 98fc96208f
commit 2a4fe8b344

View File

@ -669,8 +669,7 @@ static void EmitGetMapOperandNumber(raw_ostream &O) {
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";
}