File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -100,21 +100,16 @@ void TypeBase::walkPackReferences(
100
100
101
101
void TypeBase::getTypeParameterPacks (
102
102
SmallVectorImpl<Type> &rootParameterPacks) {
103
- llvm::SmallSetVector<Type, 2 > rootParameterPackSet;
104
-
105
103
walkPackReferences ([&](Type t) {
106
104
if (auto *paramTy = t->getAs <GenericTypeParamType>()) {
107
105
if (paramTy->isParameterPack ())
108
- rootParameterPackSet. insert (paramTy);
106
+ rootParameterPacks. push_back (paramTy);
109
107
} else if (auto *archetypeTy = t->getAs <PackArchetypeType>()) {
110
- rootParameterPackSet. insert (archetypeTy->getRoot ());
108
+ rootParameterPacks. push_back (archetypeTy->getRoot ());
111
109
}
112
110
113
111
return false ;
114
112
});
115
-
116
- rootParameterPacks.append (rootParameterPackSet.begin (),
117
- rootParameterPackSet.end ());
118
113
}
119
114
120
115
bool GenericTypeParamType::isParameterPack () const {
You can’t perform that action at this time.
0 commit comments