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 @@ -415,15 +415,15 @@ bool collectPossibleCalleesForApply(
415
415
416
416
if (auto *DRE = dyn_cast<DeclRefExpr>(fnExpr)) {
417
417
if (auto *decl = DRE->getDecl ()) {
418
- auto declType = decl->getInterfaceType ();
419
- if (auto *funcType = declType ->getAs <AnyFunctionType>())
420
- candidates.emplace_back (funcType, decl);
418
+ if ( decl->hasInterfaceType ())
419
+ if (auto *funcType = decl-> getInterfaceType () ->getAs <AnyFunctionType>())
420
+ candidates.emplace_back (funcType, decl);
421
421
}
422
422
} else if (auto *OSRE = dyn_cast<OverloadSetRefExpr>(fnExpr)) {
423
423
for (auto *decl : OSRE->getDecls ()) {
424
- auto declType = decl->getInterfaceType ();
425
- if (auto *funcType = declType ->getAs <AnyFunctionType>())
426
- candidates.emplace_back (funcType, decl);
424
+ if ( decl->hasInterfaceType ())
425
+ if (auto *funcType = decl-> getInterfaceType () ->getAs <AnyFunctionType>())
426
+ candidates.emplace_back (funcType, decl);
427
427
}
428
428
} else if (auto *UDE = dyn_cast<UnresolvedDotExpr>(fnExpr)) {
429
429
collectPossibleCalleesByQualifiedLookup (
You can’t perform that action at this time.
0 commit comments