mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-13 11:23:14 +01:00
Use toParent instead of toParent2 to determine whether inside a function body.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user