mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Reapply "Fix the closure specializer's handling of indirect result types."
This fix had nothing to do with any of the build failures. This reverts commit 86650e8d8298c5337c19786eef863025636d2eea. Swift SVN r24330
This commit is contained in:
@@ -241,7 +241,7 @@ static void rewriteApplyInst(ArgDescriptor &AD, SILFunction *NewF) {
|
||||
NewArgs.push_back(Arg);
|
||||
|
||||
SILType LoweredType = NewF->getLoweredType();
|
||||
SILType ResultType = LoweredType.getFunctionInterfaceResultType();
|
||||
SILType ResultType = LoweredType.castTo<SILFunctionType>()->getSILResult();
|
||||
ApplyInst *NewAI = Builder.createApply(AD.AI->getLoc(), FRI, LoweredType,
|
||||
ResultType, ArrayRef<Substitution>(),
|
||||
NewArgs, NewF->isTransparent());
|
||||
|
||||
Reference in New Issue
Block a user