Type: use class IntrusivePtr in IndexType

This commit is contained in:
Max Kellermann 2020-03-02 20:33:22 +01:00
parent 674e141a15
commit de0289125b
8 changed files with 45 additions and 77 deletions

View file

@ -23,9 +23,9 @@ using namespace file_analysis;
static Val* empty_connection_table()
{
TypeList* tbl_index = new TypeList(conn_id);
auto tbl_index = make_intrusive<TypeList>(conn_id);
tbl_index->Append(conn_id->Ref());
auto tbl_type = make_intrusive<TableType>(tbl_index, connection_type->Ref());
auto tbl_type = make_intrusive<TableType>(std::move(tbl_index), IntrusivePtr{NewRef{}, connection_type});
return new TableVal(std::move(tbl_type));
}