changeset 798:92ea3015ace6

Use toParent instead of toParent2 to determine whether inside a function body.
author Christian Kamm <kamm incasoftware de>
date Sat, 29 Nov 2008 17:06:36 +0100
parents 340acf1535d0
children 9f92b6e40fd3
files gen/llvmhelpers.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gen/llvmhelpers.cpp	Sat Nov 29 21:25:43 2008 +0100
+++ b/gen/llvmhelpers.cpp	Sat Nov 29 17:06:36 2008 +0100
@@ -972,7 +972,7 @@
     // 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)
     {