mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-12 02:43:14 +01:00
Use llvm_unreachable instead of assert(0).
Also removed some unused functions.
This commit is contained in:
@@ -139,8 +139,7 @@ llvm::Type * IrTypeBasic::basic2llvm(Type* t)
|
||||
case Tbool:
|
||||
return llvm::Type::getInt1Ty(ctx);
|
||||
default:
|
||||
assert(0 && "not basic type");
|
||||
return NULL;
|
||||
llvm_unreachable("Unknown basic type.");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user