From ca91c52c5a4adcad1eb61c4e7b95a328c22d5ff7 Mon Sep 17 00:00:00 2001 From: Christian Kamm Date: Sat, 29 Nov 2008 17:06:36 +0100 Subject: [PATCH] Use toParent instead of toParent2 to determine whether inside a function body. --- gen/llvmhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {