Type: base_type() returns IntrusivePtr

This commit is contained in:
Max Kellermann 2020-03-03 19:03:45 +01:00
parent f0a357cadf
commit 6495193aae
16 changed files with 104 additions and 104 deletions

View file

@ -106,7 +106,7 @@ static void make_var(ID* id, IntrusivePtr<BroType> t, init_class c,
t = init_type(init.get());
if ( ! t )
{
id->SetType({AdoptRef{}, error_type()});
id->SetType(error_type());
return;
}
}