mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Convert assert(0) to llvm_unreachable
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@149849 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -133,8 +133,7 @@ LLVMContextRef LLVMGetModuleContext(LLVMModuleRef M) {
|
||||
|
||||
LLVMTypeKind LLVMGetTypeKind(LLVMTypeRef Ty) {
|
||||
switch (unwrap(Ty)->getTypeID()) {
|
||||
default:
|
||||
assert(false && "Unhandled TypeID.");
|
||||
default: llvm_unreachable("Unhandled TypeID.");
|
||||
case Type::VoidTyID:
|
||||
return LLVMVoidTypeKind;
|
||||
case Type::HalfTyID:
|
||||
@@ -680,8 +679,7 @@ LLVMValueRef LLVMConstVector(LLVMValueRef *ScalarConstantVals, unsigned Size) {
|
||||
static LLVMOpcode map_to_llvmopcode(int opcode)
|
||||
{
|
||||
switch (opcode) {
|
||||
default:
|
||||
assert(0 && "Unhandled Opcode.");
|
||||
default: llvm_unreachable("Unhandled Opcode.");
|
||||
#define HANDLE_INST(num, opc, clas) case num: return LLVM##opc;
|
||||
#include "llvm/Instruction.def"
|
||||
#undef HANDLE_INST
|
||||
|
Reference in New Issue
Block a user