mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-11 18:33:14 +01:00
Fixed assertion failure when object.d is missing the ModuleInfo class
This commit is contained in:
@@ -616,13 +616,18 @@ void Module::genmoduleinfo()
|
||||
// }
|
||||
|
||||
// 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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user