mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
AST: Summarize a commonly used call chain in AbstractFunctionDecl. NFC (#8424)
This commit is contained in:
@@ -189,8 +189,7 @@ static std::tuple<char, ObjCSelector, CanType>
|
||||
getDynamicResultSignature(ValueDecl *decl) {
|
||||
if (auto func = dyn_cast<AbstractFunctionDecl>(decl)) {
|
||||
// Handle functions.
|
||||
auto type =
|
||||
decl->getInterfaceType()->castTo<AnyFunctionType>()->getResult();
|
||||
auto type = func->getMethodInterfaceType();
|
||||
return std::make_tuple(func->isStatic(), func->getObjCSelector(),
|
||||
type->getCanonicalType());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user