AST: Remove FuncDecl::getResultType()

This commit is contained in:
Slava Pestov
2016-11-24 01:54:24 -05:00
parent 55ad1800a1
commit f6e692198c
13 changed files with 27 additions and 34 deletions

View File

@@ -465,7 +465,8 @@ SILGenFunction::emitClosureValue(SILLocation loc, SILDeclRef constant,
void SILGenFunction::emitFunction(FuncDecl *fd) {
MagicFunctionName = SILGenModule::getMagicFunctionName(fd);
Type resultTy = fd->getResultType();
Type resultTy = ArchetypeBuilder::mapTypeIntoContext(
fd, fd->getResultInterfaceType());
emitProlog(fd, fd->getParameterLists(), resultTy, fd->hasThrows());
prepareEpilog(resultTy, fd->hasThrows(), CleanupLocation(fd));