mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-16 20:03:14 +01:00
Do not assert on non-existing supposed globals. (see nocompile/union_12,14)
This commit is contained in:
@@ -130,7 +130,7 @@ DValue* VarExp::toElem(IRState* p)
|
||||
vd->toObjFile(0); // TODO: multiobj
|
||||
DtoConstInitGlobal(vd);
|
||||
}
|
||||
if (!vd->ir.getIrValue() || DtoType(vd->type)->isAbstract()) {
|
||||
if (!vd->ir.isSet() || !vd->ir.getIrValue() || DtoType(vd->type)->isAbstract()) {
|
||||
error("global variable %s not resolved", vd->toChars());
|
||||
Logger::cout() << "unresolved global had type: " << *DtoType(vd->type) << '\n';
|
||||
fatal();
|
||||
|
||||
Reference in New Issue
Block a user