Skip to content

Commit 7bdd179

Browse files
committed
[CSOptimizer] NFC: Adopt to changes in getParameterList() API
1 parent e4920a6 commit 7bdd179

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/Sema/CSOptimizer.cpp

+3-3
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ static bool isSupportedGenericOverloadChoice(ValueDecl *decl,
287287
// that use only concrete types or generic parameters directly
288288
// in their parameter positions i.e. `(T, Int)`.
289289

290-
auto *paramList = getParameterList(decl);
290+
auto *paramList = decl->getParameterList();
291291
if (!paramList)
292292
return false;
293293

@@ -581,7 +581,7 @@ static OverloadedDeclRefExpr *isOverloadedDeclRef(Constraint *disjunction) {
581581
static unsigned numOverloadChoicesMatchingOnArity(OverloadedDeclRefExpr *ODRE,
582582
ArgumentList *arguments) {
583583
return llvm::count_if(ODRE->getDecls(), [&arguments](auto *choice) {
584-
if (auto *paramList = getParameterList(choice))
584+
if (auto *paramList = choice->getParameterList())
585585
return arguments->size() == paramList->size();
586586
return false;
587587
});
@@ -629,7 +629,7 @@ static void findFavoredChoicesBasedOnArity(
629629
}
630630

631631
if (overloadType->getNumParams() == argumentList->size() ||
632-
llvm::count_if(*getParameterList(decl), [](auto *param) {
632+
llvm::count_if(*decl->getParameterList(), [](auto *param) {
633633
return !param->isDefaultArgument();
634634
}) == argumentList->size())
635635
favored.push_back(choice);

0 commit comments

Comments
 (0)