mirror of
https://github.com/ldc-developers/ldc.git
synced 2025-05-04 17:11:44 +03:00
Make sure aggregates are resolved before outputting their debug info.
This commit is contained in:
parent
948202a1a1
commit
8feabfc5c6
1 changed files with 3 additions and 0 deletions
|
@ -264,6 +264,9 @@ static llvm::DICompositeType dwarfCompositeType(Type* type, llvm::DICompileUnit
|
|||
}
|
||||
assert(sd);
|
||||
|
||||
// make sure it's resolved
|
||||
sd->codegen(Type::sir);
|
||||
|
||||
// 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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue