simplify and tidy up some interfaces

This commit is contained in:
Vern Paxson 2021-02-27 11:07:39 -08:00
parent d38cc04e83
commit 64ef7f0eb2
3 changed files with 14 additions and 26 deletions

View file

@ -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 )