File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -367,15 +367,15 @@ static bool collectPossibleCalleesForApply(
367
367
368
368
if (auto *DRE = dyn_cast<DeclRefExpr>(fnExpr)) {
369
369
if (auto *decl = DRE->getDecl ()) {
370
- auto declType = decl->getInterfaceType ();
371
- if (auto *funcType = declType ->getAs <AnyFunctionType>())
372
- candidates.emplace_back (funcType, decl);
370
+ if ( decl->hasInterfaceType ())
371
+ if (auto *funcType = decl-> getInterfaceType () ->getAs <AnyFunctionType>())
372
+ candidates.emplace_back (funcType, decl);
373
373
}
374
374
} else if (auto *OSRE = dyn_cast<OverloadSetRefExpr>(fnExpr)) {
375
375
for (auto *decl : OSRE->getDecls ()) {
376
- auto declType = decl->getInterfaceType ();
377
- if (auto *funcType = declType ->getAs <AnyFunctionType>())
378
- candidates.emplace_back (funcType, decl);
376
+ if ( decl->hasInterfaceType ())
377
+ if (auto *funcType = decl-> getInterfaceType () ->getAs <AnyFunctionType>())
378
+ candidates.emplace_back (funcType, decl);
379
379
}
380
380
} else if (auto *UDE = dyn_cast<UnresolvedDotExpr>(fnExpr)) {
381
381
collectPossibleCalleesByQualifiedLookup (
You can’t perform that action at this time.
0 commit comments