@@ -735,8 +735,8 @@ void SILGenFunction::emitReturnExpr(SILLocation branchLoc,
735
735
for (auto cleanup : resultCleanups) {
736
736
Cleanups.forwardCleanup (cleanup);
737
737
}
738
- } else if (F.getConventions ().hasGuaranteedResults () ||
739
- F.getConventions ().hasGuaranteedAddressResults ()) {
738
+ } else if (F.getConventions ().hasGuaranteedResult () ||
739
+ F.getConventions ().hasGuaranteedAddressResult ()) {
740
740
// If the return expression is a literal, emit as a regular return
741
741
// expression/
742
742
if (isa<LiteralExpr>(ret)) {
@@ -769,7 +769,7 @@ void SILGenFunction::emitReturnExpr(SILLocation branchLoc,
769
769
// Emit return value at +0.
770
770
LValueOptions options;
771
771
auto lvalue = emitLValue (ret,
772
- F.getConventions ().hasGuaranteedResults ()
772
+ F.getConventions ().hasGuaranteedResult ()
773
773
? SGFAccessKind::BorrowedObjectRead
774
774
: SGFAccessKind::BorrowedAddressRead,
775
775
options.withBorrow (true ));
@@ -785,7 +785,7 @@ void SILGenFunction::emitReturnExpr(SILLocation branchLoc,
785
785
// Address type phis are banned in SIL.
786
786
// For now diagnose multiple return statements in such cases.
787
787
// TODO: Support multiple epilog blocks in SILGen and SILOptimizer.
788
- if (F.getConventions ().hasGuaranteedAddressResults () &&
788
+ if (F.getConventions ().hasGuaranteedAddressResult () &&
789
789
!ReturnDest.getBlock ()->getPredecessorBlocks ().empty ()) {
790
790
diagnose (getASTContext (), ret->getStartLoc (),
791
791
diag::invalid_multiple_return_borrow_accessor);
0 commit comments