mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Implement arity reabstraction for closures
This commit is contained in:
@@ -687,7 +687,7 @@ void SILGenFunction::emitClosure(AbstractClosureExpr *ace) {
|
||||
SILDeclRef(ace));
|
||||
emitProlog(captureInfo, ace->getParameters(), /*selfParam=*/nullptr,
|
||||
ace, resultIfaceTy, ace->isBodyThrowing(), ace->getLoc(),
|
||||
SGM.M.Types.getConstantAbstractionPattern(SILDeclRef(ace)));
|
||||
OrigFnType);
|
||||
prepareEpilog(resultIfaceTy, ace->isBodyThrowing(), CleanupLocation(ace));
|
||||
|
||||
emitProfilerIncrement(ace);
|
||||
|
||||
Reference in New Issue
Block a user