minor updates and fixes for script optimization maintenance

This commit is contained in:
Vern Paxson 2024-02-04 07:57:45 -08:00
parent 072fe660bc
commit 9e32443504
12 changed files with 66 additions and 12 deletions

View file

@ -47,7 +47,7 @@ void CPP_InitsInfo::GenerateInitializers(CPPCompile* c) {
if ( ++n > 1 )
c->Emit("");
if ( cohort.size() == 1 )
if ( cohort.size() == 1 && ! IsCompound() )
BuildCohort(c, cohort);
else {
c->Emit("{");