mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 00:23:14 +01:00
[svn r388] ClassInfo declaration could fail if base classdecl hadn't been resolved.
Use ForceDeclare on the class decl instead of declaring class info only.
This commit is contained in:
@@ -212,7 +212,7 @@ DValue* VarExp::toElem(IRState* p)
|
||||
else if (ClassInfoDeclaration* cid = vd->isClassInfoDeclaration())
|
||||
{
|
||||
Logger::println("ClassInfoDeclaration: %s", cid->cd->toChars());
|
||||
DtoDeclareClassInfo(cid->cd);
|
||||
DtoForceDeclareDsymbol(cid->cd);
|
||||
assert(cid->cd->ir.irStruct->classInfo);
|
||||
return new DVarValue(vd, cid->cd->ir.irStruct->classInfo, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user