mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 14:53:14 +01:00
Detect circular definition of typedef's
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user