mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
AST: Remove FuncDecl::getResultType()
This commit is contained in:
@@ -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));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user