mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149814 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -320,7 +320,7 @@ void IntrinsicEmitter::EmitVerifier(const std::vector<CodeGenIntrinsic> &Ints,
|
||||
OS << "// Verifier::visitIntrinsicFunctionCall code.\n";
|
||||
OS << "#ifdef GET_INTRINSIC_VERIFIER\n";
|
||||
OS << " switch (ID) {\n";
|
||||
OS << " default: assert(0 && \"Invalid intrinsic!\");\n";
|
||||
OS << " default: llvm_unreachable(\"Invalid intrinsic!\");\n";
|
||||
|
||||
// This checking can emit a lot of very common code. To reduce the amount of
|
||||
// code that we emit, batch up cases that have identical types. This avoids
|
||||
@@ -416,7 +416,7 @@ void IntrinsicEmitter::EmitGenerator(const std::vector<CodeGenIntrinsic> &Ints,
|
||||
OS << "// Code for generating Intrinsic function declarations.\n";
|
||||
OS << "#ifdef GET_INTRINSIC_GENERATOR\n";
|
||||
OS << " switch (id) {\n";
|
||||
OS << " default: assert(0 && \"Invalid intrinsic!\");\n";
|
||||
OS << " default: llvm_unreachable(\"Invalid intrinsic!\");\n";
|
||||
|
||||
// Similar to GET_INTRINSIC_VERIFIER, batch up cases that have identical
|
||||
// types.
|
||||
@@ -485,8 +485,7 @@ namespace {
|
||||
case CodeGenIntrinsic::ReadWriteMem:
|
||||
return MRK_none;
|
||||
}
|
||||
assert(0 && "bad mod-ref kind");
|
||||
return MRK_none;
|
||||
llvm_unreachable("bad mod-ref kind");
|
||||
}
|
||||
|
||||
struct AttributeComparator {
|
||||
|
Reference in New Issue
Block a user