mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
some code simplifications and streamlining
This commit is contained in:
parent
18c77ddc2c
commit
79c53c9ed6
11 changed files with 23 additions and 27 deletions
|
@ -787,10 +787,10 @@ StmtPtr StmtList::DoReduce(Reducer* c)
|
|||
bool StmtList::ReduceStmt(int& s_i, std::vector<StmtPtr>& f_stmts, Reducer* c)
|
||||
{
|
||||
bool did_change = false;
|
||||
auto stmt = stmts[s_i];
|
||||
auto old_stmt = stmt;
|
||||
auto& stmt_i = stmts[s_i];
|
||||
auto old_stmt = stmt_i.get();
|
||||
|
||||
stmt = stmt->Reduce(c);
|
||||
auto stmt = stmt_i->Reduce(c);
|
||||
|
||||
if ( stmt != old_stmt )
|
||||
did_change = true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue