diff --git a/src/parse.y b/src/parse.y index 4f5576e6de..4fd7980625 100644 --- a/src/parse.y +++ b/src/parse.y @@ -242,7 +242,7 @@ static void build_global(ID* id, Type* t, InitClass ic, Expr* e, auto attrs_ptr = attrs ? std::make_unique>(*attrs) : nullptr; - add_global(id_ptr, t_ptr, ic, e_ptr, std::move(attrs_ptr), dt); + add_global(id_ptr, std::move(t_ptr), ic, e_ptr, std::move(attrs_ptr), dt); if ( dt == VAR_REDEF ) zeekygen_mgr->Redef(id, ::filename, ic, std::move(e_ptr)); @@ -260,7 +260,8 @@ static StmtPtr build_local(ID* id, Type* t, InitClass ic, Expr* e, auto attrs_ptr = attrs ? std::make_unique>(*attrs) : nullptr; - auto init = add_local(id_ptr, t_ptr, ic, e_ptr, std::move(attrs_ptr), dt); + auto init = add_local(std::move(id_ptr), std::move(t_ptr), ic, + std::move(e_ptr), std::move(attrs_ptr), dt); if ( do_coverage ) script_coverage_mgr.AddStmt(init.get());