mirror of
https://github.com/zeek/zeek.git
synced 2025-10-08 09:38:19 +00:00
Adjust some Reducer ref-counting and IntrusivePtr usage
This commit is contained in:
parent
7ce4351ed0
commit
b4cf393475
4 changed files with 12 additions and 12 deletions
|
@ -369,7 +369,7 @@ ExprPtr NameExpr::Reduce(Reducer* c, StmtPtr& red_stmt)
|
|||
return TransformMe(make_intrusive<ConstExpr>(v), c, red_stmt);
|
||||
}
|
||||
|
||||
return c->UpdateName(this)->ThisPtr();
|
||||
return c->UpdateName({NewRef{}, this});
|
||||
}
|
||||
|
||||
ValPtr NameExpr::FoldVal() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue