[svn r391] Fix classes nested inside functions for real.

This commit is contained in:
Christian Kamm
2008-07-15 10:23:50 +02:00
parent e69f92b613
commit 1486f29abb
3 changed files with 42 additions and 2 deletions

View File

@@ -382,7 +382,7 @@ static LLValue* get_frame_ptr_impl(FuncDeclaration* func, Dsymbol* sc, LLValue*
}
else if (ClassDeclaration* cd = fd->toParent2()->isClassDeclaration())
{
v = DtoGEPi(v,0,2,"tmp");
v = DtoGEPi(v,0,2+cd->vthis->ir.irField->index,"tmp");
v = DtoLoad(v);
}
else