DMD Issue 5416 - null should have a type of its own

This commit is contained in:
Alexey Prokhin
2011-12-15 13:31:39 +04:00
parent 88cff99bd4
commit edc4a5f003
7 changed files with 21 additions and 4 deletions

View File

@@ -380,7 +380,11 @@ void DtoDeclareTypeInfo(TypeInfoDeclaration* tid)
void TypeInfoDeclaration::llvmDefine()
{
assert(0 && "cannot generate generic typeinfo");
Logger::println("TypeInfoDeclaration::llvmDefine() %s", toChars());
LOG_SCOPE;
RTTIBuilder b(Type::typeinfo);
b.finalize(ir.irGlobal);
}
/* ========================================================================= */