diff --git a/gen/llvmhelpers.cpp b/gen/llvmhelpers.cpp index c3664772..7e1ece5d 100644 --- a/gen/llvmhelpers.cpp +++ b/gen/llvmhelpers.cpp @@ -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) {