mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-04-30 07:00:46 +03:00
Emit fatal codegen error for unsupported dual-context for now
As long as dlang/dmd#9282 isn't ported to LDC.
This commit is contained in:
parent
4bcaba71c1
commit
d93087ad90
1 changed files with 5 additions and 1 deletions
|
@ -306,7 +306,11 @@ llvm::FunctionType *DtoFunctionType(FuncDeclaration *fdecl) {
|
|||
} else {
|
||||
IF_LOG Logger::println("chars: %s type: %s kind: %s", fdecl->toChars(),
|
||||
fdecl->type->toChars(), fdecl->kind());
|
||||
llvm_unreachable("needThis, but invalid parent declaration.");
|
||||
fdecl->error("requires a dual-context, which is not yet supported by LDC");
|
||||
if (!global.gag)
|
||||
fatal();
|
||||
return LLFunctionType::get(LLType::getVoidTy(gIR->context()),
|
||||
/*isVarArg=*/false);
|
||||
}
|
||||
} else if (fdecl->isNested()) {
|
||||
dnest = Type::tvoid->pointerTo();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue