mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 06:43:14 +01:00
Fixed an assertion in DtoType()
This commit is contained in:
@@ -306,6 +306,11 @@ void DtoResolveFunction(FuncDeclaration* fdecl)
|
||||
if (fdecl->ir.resolved) return;
|
||||
fdecl->ir.resolved = true;
|
||||
|
||||
// If errors occurred compiling it, such as bugzilla 6118
|
||||
Type *type = fdecl->type;
|
||||
if (type && type->ty == Tfunction && ((TypeFunction *)type)->next->ty == Terror)
|
||||
return;
|
||||
|
||||
//printf("resolve function: %s\n", fdecl->toPrettyChars());
|
||||
|
||||
if (fdecl->parent)
|
||||
|
||||
Reference in New Issue
Block a user