[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:
Christian Kamm
2008-07-15 08:17:43 +02:00
parent efd3f0dddf
commit e846017e80

View File

@@ -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);
}