Skip to content

Commit aaa4200

Browse files
committed
---
yaml --- r: 323562 b: refs/heads/tensorflow-next c: 8b4e4c8 h: refs/heads/master
1 parent 4878427 commit aaa4200

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1461,4 +1461,4 @@ refs/heads/master-rebranch: 86e95c23aa0d37f24ec138b7853146c1cead2e40
14611461
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14621462
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14631463
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec
1464-
refs/heads/tensorflow-next: 606228e1aebca383649ecef49eb3bb55b845720a
1464+
refs/heads/tensorflow-next: 8b4e4c811eac673d09f925f869b54c3ba591b6de

branches/tensorflow-next/lib/IDE/ExprContextAnalysis.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -368,15 +368,15 @@ static bool collectPossibleCalleesForApply(
368368

369369
if (auto *DRE = dyn_cast<DeclRefExpr>(fnExpr)) {
370370
if (auto *decl = DRE->getDecl()) {
371-
auto declType = decl->getInterfaceType();
372-
if (auto *funcType = declType->getAs<AnyFunctionType>())
373-
candidates.emplace_back(funcType, decl);
371+
if (decl->hasInterfaceType())
372+
if (auto *funcType = decl->getInterfaceType()->getAs<AnyFunctionType>())
373+
candidates.emplace_back(funcType, decl);
374374
}
375375
} else if (auto *OSRE = dyn_cast<OverloadSetRefExpr>(fnExpr)) {
376376
for (auto *decl : OSRE->getDecls()) {
377-
auto declType = decl->getInterfaceType();
378-
if (auto *funcType = declType->getAs<AnyFunctionType>())
379-
candidates.emplace_back(funcType, decl);
377+
if (decl->hasInterfaceType())
378+
if (auto *funcType = decl->getInterfaceType()->getAs<AnyFunctionType>())
379+
candidates.emplace_back(funcType, decl);
380380
}
381381
} else if (auto *UDE = dyn_cast<UnresolvedDotExpr>(fnExpr)) {
382382
collectPossibleCalleesByQualifiedLookup(

0 commit comments

Comments
 (0)