mirror of
https://github.com/zeek/zeek.git
synced 2025-10-16 13:38:19 +00:00
speeding up record constructors
This commit is contained in:
parent
c0045c4643
commit
4b18cee059
14 changed files with 353 additions and 100 deletions
|
@ -887,9 +887,9 @@ StmtPtr StmtList::TransformChain(const OpChain& c, ExprTag t, std::set<const Stm
|
|||
|
||||
ExprPtr e;
|
||||
if ( t == EXPR_ASSIGN )
|
||||
e = make_intrusive<AssignRecordFields>(orig_s, chain_stmts);
|
||||
e = make_intrusive<AssignRecordFieldsExpr>(orig_s, chain_stmts);
|
||||
else
|
||||
e = make_intrusive<AddRecordFields>(orig_s, chain_stmts);
|
||||
e = make_intrusive<AddRecordFieldsExpr>(orig_s, chain_stmts);
|
||||
|
||||
e->SetLocationInfo(sl->GetLocationInfo());
|
||||
auto es = with_location_of(make_intrusive<ExprStmt>(std::move(e)), sl);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue