Type: use class IntrusivePtr in TypeType

This commit is contained in:
Max Kellermann 2020-03-03 17:02:32 +01:00
parent 184fb9a980
commit dd74df9c5e
3 changed files with 5 additions and 8 deletions

View file

@ -141,7 +141,7 @@ public:
// Extra arg to differentiate from protected version.
Val(BroType* t, bool type_type)
: type(new TypeType(t->Ref()))
: type(new TypeType({NewRef{}, t}))
{
}