mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-26 01:23:13 +01:00
[svn r110] Fixed typeinfo for classes.
This commit is contained in:
@@ -212,6 +212,10 @@ void DtoDeclareClass(ClassDeclaration* cd)
|
||||
|
||||
// classinfo
|
||||
DtoDeclareClassInfo(cd);
|
||||
|
||||
// typeinfo
|
||||
if (cd->parent->isModule() && cd->getModule() == gIR->dmodule)
|
||||
cd->type->getTypeInfo(NULL);
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -530,7 +534,7 @@ void DtoDefineClassInfo(ClassDeclaration* cd)
|
||||
for (size_t i = 0; i < cd2->members->dim; i++)
|
||||
{
|
||||
Dsymbol *sm = (Dsymbol *)cd2->members->data[i];
|
||||
//printf("sm = %s %s\n", sm->kind(), sm->toChars());
|
||||
//printf("sm = %s %s\n", sm->kind(), sm->toChars());
|
||||
if (sm->hasPointers())
|
||||
goto L2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user