File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ static bool isSupportedGenericOverloadChoice(ValueDecl *decl,
287
287
// that use only concrete types or generic parameters directly
288
288
// in their parameter positions i.e. `(T, Int)`.
289
289
290
- auto *paramList = getParameterList (decl );
290
+ auto *paramList = decl-> getParameterList ();
291
291
if (!paramList)
292
292
return false ;
293
293
@@ -581,7 +581,7 @@ static OverloadedDeclRefExpr *isOverloadedDeclRef(Constraint *disjunction) {
581
581
static unsigned numOverloadChoicesMatchingOnArity (OverloadedDeclRefExpr *ODRE,
582
582
ArgumentList *arguments) {
583
583
return llvm::count_if (ODRE->getDecls (), [&arguments](auto *choice) {
584
- if (auto *paramList = getParameterList (choice ))
584
+ if (auto *paramList = choice-> getParameterList ())
585
585
return arguments->size () == paramList->size ();
586
586
return false ;
587
587
});
@@ -629,7 +629,7 @@ static void findFavoredChoicesBasedOnArity(
629
629
}
630
630
631
631
if (overloadType->getNumParams () == argumentList->size () ||
632
- llvm::count_if (*getParameterList (decl ), [](auto *param) {
632
+ llvm::count_if (*decl-> getParameterList (), [](auto *param) {
633
633
return !param->isDefaultArgument ();
634
634
}) == argumentList->size ())
635
635
favored.push_back (choice);
You can’t perform that action at this time.
0 commit comments