Skip to content

Commit

Permalink
Cherry-pick dlang/dmd#14750 to fix circular reference error when comp…
Browse files Browse the repository at this point in the history
…iling agent code
  • Loading branch information
JohanEngelen committed Dec 30, 2022
1 parent 9b6229c commit e82ccca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion dmd/expression.d
Original file line number Diff line number Diff line change
Expand Up @@ -1295,7 +1295,9 @@ extern (C++) /* IN_LLVM abstract */ class Expression : ASTNode
StructDeclaration sd = (cast(TypeStruct)v.type).sym;
if (sd.members) // not opaque
{
sd.determineSize(v.loc);
if (sd.semanticRun >= PASS.semanticdone)
sd.determineSize(v.loc);

if (sd.hasNoFields)
return false;
}
Expand Down

0 comments on commit e82ccca

Please sign in to comment.