mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Make typeinfo for struct
This commit is contained in:
@@ -48,7 +48,8 @@ void DtoResolveStruct(StructDeclaration* sd)
|
||||
LLGlobalVariable* initZ = irstruct->getInitSymbol();
|
||||
|
||||
// perform definition
|
||||
if (mustDefineSymbol(sd))
|
||||
bool needs_def = mustDefineSymbol(sd);
|
||||
if (needs_def)
|
||||
{
|
||||
// set initZ initializer
|
||||
initZ->setInitializer(irstruct->getDefaultInit());
|
||||
@@ -67,8 +68,11 @@ void DtoResolveStruct(StructDeclaration* sd)
|
||||
}
|
||||
}
|
||||
|
||||
// emit typeinfo
|
||||
DtoTypeInfoOf(sd->type);
|
||||
if (needs_def)
|
||||
{
|
||||
// emit typeinfo
|
||||
DtoTypeInfoOf(sd->type);
|
||||
}
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user