mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-03 16:41:06 +03:00
Detect circular definition of typedef's
This commit is contained in:
parent
3ceb476d32
commit
02b307c0e9
1 changed files with 1 additions and 1 deletions
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue