mirror of
https://github.com/zeek/zeek.git
synced 2025-10-13 20:18:20 +00:00
Type: use class IntrusivePtr in TypeType
This commit is contained in:
parent
184fb9a980
commit
dd74df9c5e
3 changed files with 5 additions and 8 deletions
|
@ -218,7 +218,7 @@ NameExpr::NameExpr(IntrusivePtr<ID> arg_id, bool const_init)
|
|||
in_const_init = const_init;
|
||||
|
||||
if ( id->AsType() )
|
||||
SetType(make_intrusive<TypeType>(id->AsType()));
|
||||
SetType(make_intrusive<TypeType>(IntrusivePtr{NewRef{}, id->AsType()}));
|
||||
else
|
||||
SetType({NewRef{}, id->Type()});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue