mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-28 17:43:14 +01:00
Use llvm_unreachable instead of assert(0).
Also removed some unused functions.
This commit is contained in:
@@ -444,7 +444,7 @@ llvm::FunctionType* DtoFunctionType(FuncDeclaration* fdecl)
|
||||
}
|
||||
else {
|
||||
Logger::println("chars: %s type: %s kind: %s", fdecl->toChars(), fdecl->type->toChars(), fdecl->kind());
|
||||
assert(0);
|
||||
llvm_unreachable("needThis, but invalid parent declaration.");
|
||||
}
|
||||
}
|
||||
else if (fdecl->isNested()) {
|
||||
|
||||
Reference in New Issue
Block a user