Merge pull request #19560 from slavapestov/remove-functype-getinput

Remove FunctionType::getInput()
This commit is contained in:
Slava Pestov
2018-09-26 19:39:03 -07:00
committed by GitHub
32 changed files with 277 additions and 254 deletions

View File

@@ -1044,7 +1044,11 @@ SwiftDeclCollector::constructTypeNode(Type T,
// Still, return type first
Root->addChild(constructTypeNode(Fun->getResult()));
Root->addChild(constructTypeNode(Fun->getInput()));
auto Input = AnyFunctionType::composeInput(Fun->getASTContext(),
Fun->getParams(),
/*canonicalVararg=*/false);
Root->addChild(constructTypeNode(Input));
return Root;
}