Mercurial > projects > ldc
changeset 919:c76f74d09fb1
Fixed assertion failure when object.d is missing the ModuleInfo class
author | Tomas Lindquist Olsen <tomas.l.olsen@gmail.com> |
---|---|
date | Mon, 02 Feb 2009 02:35:44 +0100 |
parents | a4fcc13da3cd |
children | 545f54041d91 |
files | gen/toobj.cpp |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gen/toobj.cpp Mon Feb 02 01:44:51 2009 +0100 +++ b/gen/toobj.cpp Mon Feb 02 02:35:44 2009 +0100 @@ -616,13 +616,18 @@ // } // resolve ModuleInfo - assert(moduleinfo); + if (!moduleinfo) + { + error("object.d is missing the ModuleInfo class"); + fatal(); + } + DtoForceConstInitDsymbol(moduleinfo); // check for patch if (moduleinfo->fields.dim != 9) { - error("unpatched object.d detected, ModuleInfo incorrect"); + error("object.d ModuleInfo class is incorrect"); fatal(); }