Deprecate TypeList::PureType(), replace with TypeList::GetPureType()

This commit is contained in:
Jon Siwek 2020-05-06 20:58:40 -07:00
parent 9ab7150883
commit 011866a908
8 changed files with 21 additions and 14 deletions

View file

@ -1235,8 +1235,8 @@ IntrusivePtr<TableVal> ListVal::ToSetVal() const
if ( tag == TYPE_ANY )
Internal("conversion of heterogeneous list to set");
auto set_index = make_intrusive<TypeList>(
IntrusivePtr{NewRef{}, type->AsTypeList()->PureType()});
const auto& pt = type->AsTypeList()->GetPureType();
auto set_index = make_intrusive<TypeList>(pt);
set_index->Append(base_type(tag));
auto s = make_intrusive<SetType>(std::move(set_index), nullptr);
auto t = make_intrusive<TableVal>(std::move(s));