Added simple check for ClassInfo change introduced in DMD 1.045, it must have 12 fields.

This commit is contained in:
Tomas Lindquist Olsen
2009-05-17 23:15:04 +02:00
parent 827880e467
commit be25445461

View File

@@ -690,6 +690,12 @@ LLConstant* DtoDefineClassInfo(ClassDeclaration* cd)
ClassDeclaration* cinfo = ClassDeclaration::classinfo;
if (cinfo->fields.dim != 12)
{
error("object.d ClassInfo class is incorrect");
fatal();
}
// use the rtti builder
RTTIBuilder b(ClassDeclaration::classinfo);