mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-01 07:30:43 +03:00
D1 build fix.
The workaround could later be merged to D1 if the same problem starts to appear there as well.
This commit is contained in:
parent
dc7e328356
commit
08708917bc
1 changed files with 2 additions and 0 deletions
|
@ -967,11 +967,13 @@ TemplateInstance* DtoIsTemplateInstance(Dsymbol* s, bool checkLiteralOwner)
|
|||
if (!s) return NULL;
|
||||
if (s->isTemplateInstance() && !s->isTemplateMixin())
|
||||
return s->isTemplateInstance();
|
||||
#if DMDV2
|
||||
if (FuncLiteralDeclaration* fld = s->isFuncLiteralDeclaration())
|
||||
{
|
||||
if (checkLiteralOwner && fld->owningTemplate)
|
||||
return fld->owningTemplate;
|
||||
}
|
||||
#endif
|
||||
if (s->parent)
|
||||
return DtoIsTemplateInstance(s->parent, checkLiteralOwner);
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue