mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Added simple check for ClassInfo change introduced in DMD 1.045, it must have 12 fields.
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user