mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
fixes for -O gen-standalone-C++ generation of lambdas
This commit is contained in:
parent
b2222e97a1
commit
a3b54b69a1
4 changed files with 23 additions and 11 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue