mirror of
https://github.com/xomboverlord/ldc.git
synced 2026-02-26 08:33:14 +01:00
Fix bug #177 by not attempting to define composite debug info for
forward-declared structs.
This commit is contained in:
@@ -439,6 +439,11 @@ static LLGlobalVariable* dwarfCompositeType(Type* type, llvm::GlobalVariable* co
|
||||
}
|
||||
assert(sd);
|
||||
|
||||
// if we don't know the aggregate's size, we don't know enough about it
|
||||
// to provide debug info. probably a forward-declared struct?
|
||||
if (sd->sizeok == 0)
|
||||
return NULL;
|
||||
|
||||
IrStruct* ir = sd->ir.irStruct;
|
||||
assert(ir);
|
||||
if (ir->dwarfComposite)
|
||||
|
||||
Reference in New Issue
Block a user