Detect circular definition of typedef's

This commit is contained in:
Alexey Prokhin 2011-01-04 20:03:29 +03:00
parent 3ceb476d32
commit 02b307c0e9

View file

@ -400,7 +400,7 @@ void TypeInfoTypedefDeclaration::llvmDefine()
// void[] init
// emit null array if we should use the basetype, or if the basetype
// uses default initialization.
if (!sd->init || tinfo->isZeroInit(0))
if (tinfo->isZeroInit(0) || !sd->init)
{
b.push_null_void_array();
}