fixes for -O gen-standalone-C++ generation of lambdas

This commit is contained in:
Vern Paxson 2025-01-14 17:02:12 -08:00
parent b2222e97a1
commit a3b54b69a1
4 changed files with 23 additions and 11 deletions

View file

@ -79,6 +79,10 @@ void CPPCompile::Compile(bool report_uncompilable) {
}
}
for ( auto& l : pfs->Lambdas() )
if ( obj_matches_opt_files(l) )
accessed_lambdas.insert(l);
for ( auto& ea : pfs->ExprAttrs() )
if ( obj_matches_opt_files(ea.first) ) {
auto& attr = ea.first;