@@ -735,8 +735,8 @@ void SILGenFunction::emitReturnExpr(SILLocation branchLoc,
735735 for (auto cleanup : resultCleanups) {
736736 Cleanups.forwardCleanup (cleanup);
737737 }
738- } else if (F.getConventions ().hasGuaranteedResults () ||
739- F.getConventions ().hasGuaranteedAddressResults ()) {
738+ } else if (F.getConventions ().hasGuaranteedResult () ||
739+ F.getConventions ().hasGuaranteedAddressResult ()) {
740740 // If the return expression is a literal, emit as a regular return
741741 // expression/
742742 if (isa<LiteralExpr>(ret)) {
@@ -769,7 +769,7 @@ void SILGenFunction::emitReturnExpr(SILLocation branchLoc,
769769 // Emit return value at +0.
770770 LValueOptions options;
771771 auto lvalue = emitLValue (ret,
772- F.getConventions ().hasGuaranteedResults ()
772+ F.getConventions ().hasGuaranteedResult ()
773773 ? SGFAccessKind::BorrowedObjectRead
774774 : SGFAccessKind::BorrowedAddressRead,
775775 options.withBorrow (true ));
@@ -785,7 +785,7 @@ void SILGenFunction::emitReturnExpr(SILLocation branchLoc,
785785 // Address type phis are banned in SIL.
786786 // For now diagnose multiple return statements in such cases.
787787 // TODO: Support multiple epilog blocks in SILGen and SILOptimizer.
788- if (F.getConventions ().hasGuaranteedAddressResults () &&
788+ if (F.getConventions ().hasGuaranteedAddressResult () &&
789789 !ReturnDest.getBlock ()->getPredecessorBlocks ().empty ()) {
790790 diagnose (getASTContext (), ret->getStartLoc (),
791791 diag::invalid_multiple_return_borrow_accessor);
0 commit comments