GH-1624: Migrate check_and_promote and a few Expr methods to IntrusivePtr

This commit is contained in:
Tim Wojtulewicz 2021-12-13 13:19:12 -07:00
parent 75b7bd0c6e
commit edf90a51e4
7 changed files with 76 additions and 65 deletions

View file

@ -23,7 +23,7 @@
namespace zeek::detail
{
static ValPtr init_val(Expr* init, const Type* t, ValPtr aggr)
static ValPtr init_val(ExprPtr init, TypePtr t, ValPtr aggr)
{
try
{
@ -289,7 +289,7 @@ static void make_var(const IDPtr& id, TypePtr t, InitClass c, ExprPtr init,
if ( init )
{
v = init_val(init.get(), t.get(), aggr);
v = init_val(init, t, aggr);
if ( ! v )
return;