maintenance updates for -O C++

This commit is contained in:
Vern Paxson 2022-12-04 17:59:14 -08:00
parent ab7cccf9b6
commit 52775bea89
10 changed files with 76 additions and 3 deletions

View file

@ -1136,7 +1136,11 @@ string CPPCompile::GenDirectAssign(const ExprPtr& lhs, const string& rhs_native,
}
}
else
{
gen = name + " = " + rhs_native;
if ( ! top_level )
gen = NativeToGT("(" + gen + ")", n->GetType(), gt);
}
return gen;
}