From be254454615d1f2b9b04546d6461358359f0ac6d Mon Sep 17 00:00:00 2001 From: Tomas Lindquist Olsen Date: Sun, 17 May 2009 23:15:04 +0200 Subject: [PATCH] Added simple check for ClassInfo change introduced in DMD 1.045, it must have 12 fields. --- gen/classes.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gen/classes.cpp b/gen/classes.cpp index 309b2217..2ac7be9f 100644 --- a/gen/classes.cpp +++ b/gen/classes.cpp @@ -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);