mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 08:30:47 +03:00
Merge dmdfe 2.057
This commit is contained in:
parent
4e8afa8858
commit
88cff99bd4
32 changed files with 2518 additions and 1378 deletions
|
@ -306,10 +306,13 @@ 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;
|
||||
// If errors occurred compiling it, such as bugzilla 6118
|
||||
if (type && type->ty == Tfunction) {
|
||||
Type *next = ((TypeFunction *)type)->next;
|
||||
if (!next || next->ty == Terror)
|
||||
return;
|
||||
}
|
||||
|
||||
//printf("resolve function: %s\n", fdecl->toPrettyChars());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue