mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
ApplySite::getPseudoResult
This returns the fake tuple value for either an apply or try_apply. This is not actually a result. It is composed of the results.
This commit is contained in:
@@ -2244,8 +2244,8 @@ SILFunction *ReabstractionThunkGenerator::createThunk() {
|
||||
Arguments.push_back(NewArg);
|
||||
}
|
||||
FullApplySite ApplySite = createReabstractionThunkApply(Builder);
|
||||
SILValue ReturnValue = ApplySite.getSingleDirectResult();
|
||||
assert(ReturnValue && "getSingleDirectResult out of sync with ApplySite?!");
|
||||
SILValue ReturnValue = ApplySite.getPseudoResult();
|
||||
assert(ReturnValue && "getPseudoResult out of sync with ApplySite?!");
|
||||
Builder.createReturn(Loc, ReturnValue);
|
||||
|
||||
return Thunk;
|
||||
@@ -2257,8 +2257,8 @@ SILFunction *ReabstractionThunkGenerator::createThunk() {
|
||||
|
||||
FullApplySite ApplySite = createReabstractionThunkApply(Builder);
|
||||
|
||||
SILValue ReturnValue = ApplySite.getSingleDirectResult();
|
||||
assert(ReturnValue && "getSingleDirectResult out of sync with ApplySite?!");
|
||||
SILValue ReturnValue = ApplySite.getPseudoResult();
|
||||
assert(ReturnValue && "getPseudoResult out of sync with ApplySite?!");
|
||||
|
||||
if (ReturnValueAddr) {
|
||||
// Need to store the direct results to the original indirect address.
|
||||
|
||||
Reference in New Issue
Block a user