mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-06 10:57:35 +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
|
// void[] init
|
||||||
// emit null array if we should use the basetype, or if the basetype
|
// emit null array if we should use the basetype, or if the basetype
|
||||||
// uses default initialization.
|
// uses default initialization.
|
||||||
if (!sd->init || tinfo->isZeroInit(0))
|
if (tinfo->isZeroInit(0) || !sd->init)
|
||||||
{
|
{
|
||||||
b.push_null_void_array();
|
b.push_null_void_array();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue