Mercurial > projects > ldc
diff gen/toir.cpp @ 367:519adb3128b1 trunk
[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.
author | ChristianK |
---|---|
date | Tue, 15 Jul 2008 08:17:43 +0200 |
parents | bfb9d28f045a |
children | d8234836b40f |
line wrap: on
line diff
--- a/gen/toir.cpp Tue Jul 15 02:01:53 2008 +0200 +++ b/gen/toir.cpp Tue Jul 15 08:17:43 2008 +0200 @@ -212,7 +212,7 @@ 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); }