mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-01-20 23:03:14 +01:00
Fix DMD Issue 10451 - Array of pointers to opaque struct gives forward reference errors.
This commit is contained in:
@@ -601,6 +601,13 @@ void TypeInfoStructDeclaration::llvmDefine()
|
||||
TypeStruct *tc = static_cast<TypeStruct *>(tinfo);
|
||||
StructDeclaration *sd = tc->sym;
|
||||
|
||||
// handle opaque structs
|
||||
if (!sd->members) {
|
||||
RTTIBuilder b(Type::typeinfostruct);
|
||||
b.finalize(ir.irGlobal);
|
||||
return;
|
||||
}
|
||||
|
||||
// can't emit typeinfo for forward declarations
|
||||
if (sd->sizeok != SIZEOKdone)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user