Use toParent instead of toParent2 to determine whether inside a function body.

This commit is contained in:
Christian Kamm 2008-11-29 17:06:36 +01:00
parent f46f865375
commit ca91c52c5a

View file

@ -972,7 +972,7 @@ void DtoConstInitGlobal(VarDeclaration* vd)
// FIXME: I don't think it's thread safe ...
bool doLazyInit = false;
Dsymbol* par = vd->toParent2();
Dsymbol* par = vd->toParent();
if (par && par->isFuncDeclaration() && vd->init)
{