Scope: use class IntrusivePtr

This commit is contained in:
Max Kellermann 2020-03-05 19:49:21 +01:00
parent 36a26a7b43
commit dc518c0fb4
3 changed files with 14 additions and 20 deletions

View file

@ -394,7 +394,7 @@ void begin_func(ID* id, const char* module_name, function_flavor flavor,
else
id->SetType(t);
push_scope(id, attrs);
push_scope({NewRef{}, id}, attrs);
RecordType* args = t->Args();
int num_args = args->NumFields();