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

@ -177,7 +177,11 @@ FuncValPtr lookup_func__CPP(string name, int num_bodies, vector<p_hash_type> has
for ( auto h : hashes ) {
auto cs = compiled_scripts.find(h);
ASSERT(cs != compiled_scripts.end());
if ( cs == compiled_scripts.end() ) {
cs = compiled_standalone_scripts.find(h);
ASSERT(cs != compiled_standalone_scripts.end());
}
const auto& f = cs->second;
bodies.emplace_back(f.body);