mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
simplify and tidy up some interfaces
This commit is contained in:
parent
d38cc04e83
commit
64ef7f0eb2
3 changed files with 14 additions and 26 deletions
|
@ -49,7 +49,7 @@ void optimize_func(ScriptFunc* f, std::shared_ptr<ProfileFunc> pf,
|
|||
auto scope = scope_ptr.release();
|
||||
push_existing_scope(scope);
|
||||
|
||||
auto rc = std::make_shared<Reducer>(scope);
|
||||
auto rc = std::make_shared<Reducer>();
|
||||
auto new_body = rc->Reduce(body);
|
||||
|
||||
if ( reporter->Errors() > 0 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue