# HG changeset patch # User Christian Kamm # Date 1219947336 -7200 # Node ID d19e29194c137781a27ae1bbea0893b87aad151e # Parent 648409a7fb0c517584fbf0ecb523c33957f7d4f9 Do not assert on non-existing supposed globals. (see nocompile/union_12,14) diff -r 648409a7fb0c -r d19e29194c13 gen/toir.cpp --- a/gen/toir.cpp Thu Aug 28 08:37:47 2008 +0200 +++ b/gen/toir.cpp Thu Aug 28 20:15:36 2008 +0200 @@ -130,7 +130,7 @@ 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();