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:
Andrew Trick
2022-01-20 11:08:00 -08:00
parent 83b01d8ebe
commit 18f8507e89
2 changed files with 15 additions and 14 deletions

View File

@@ -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.