@@ -438,8 +438,8 @@ class ASTExtInfoBuilder {
438438 // If bits are added or removed, then TypeBase::NumAFTExtInfoBits
439439 // and NumMaskBits must be updated, and they must match.
440440 //
441- // |representation|noEscape|concurrent|async|throws|isolation|differentiability| TransferringResult |
442- // | 0 .. 3 | 4 | 5 | 6 | 7 | 8 .. 10 | 11 .. 13 | 14 |
441+ // |representation|noEscape|concurrent|async|throws|isolation|differentiability| SendingResult |
442+ // | 0 .. 3 | 4 | 5 | 6 | 7 | 8 .. 10 | 11 .. 13 | 14 |
443443 //
444444 enum : unsigned {
445445 RepresentationMask = 0xF << 0 ,
@@ -451,7 +451,7 @@ class ASTExtInfoBuilder {
451451 IsolationMask = 0x7 << IsolationMaskOffset,
452452 DifferentiabilityMaskOffset = 11 ,
453453 DifferentiabilityMask = 0x7 << DifferentiabilityMaskOffset,
454- TransferringResultMask = 1 << 14 ,
454+ SendingResultMask = 1 << 14 ,
455455 NumMaskBits = 15
456456 };
457457
@@ -501,14 +501,14 @@ class ASTExtInfoBuilder {
501501 Type thrownError, DifferentiabilityKind diffKind,
502502 const clang::Type *type, FunctionTypeIsolation isolation,
503503 LifetimeDependenceInfo lifetimeDependenceInfo,
504- bool transferringResult )
504+ bool sendingResult )
505505 : ASTExtInfoBuilder(
506506 ((unsigned )rep) | (isNoEscape ? NoEscapeMask : 0 ) |
507507 (throws ? ThrowsMask : 0 ) |
508508 (((unsigned )diffKind << DifferentiabilityMaskOffset) &
509509 DifferentiabilityMask) |
510510 (unsigned (isolation.getKind()) << IsolationMaskOffset) |
511- (transferringResult ? TransferringResultMask : 0 ),
511+ (sendingResult ? SendingResultMask : 0 ),
512512 ClangTypeInfo(type), isolation.getOpaqueType(), thrownError,
513513 lifetimeDependenceInfo) {}
514514
@@ -530,9 +530,7 @@ class ASTExtInfoBuilder {
530530
531531 constexpr bool isThrowing () const { return bits & ThrowsMask; }
532532
533- constexpr bool hasTransferringResult () const {
534- return bits & TransferringResultMask;
535- }
533+ constexpr bool hasSendingResult () const { return bits & SendingResultMask; }
536534
537535 constexpr DifferentiabilityKind getDifferentiabilityKind () const {
538536 return DifferentiabilityKind ((bits & DifferentiabilityMask) >>
@@ -644,12 +642,10 @@ class ASTExtInfoBuilder {
644642 return withThrows (true , Type ());
645643 }
646644
647- [[nodiscard]] ASTExtInfoBuilder
648- withTransferringResult (bool transferring = true ) const {
649- return ASTExtInfoBuilder (transferring ? (bits | TransferringResultMask)
650- : (bits & ~TransferringResultMask),
651- clangTypeInfo, globalActor, thrownError,
652- lifetimeDependenceInfo);
645+ [[nodiscard]] ASTExtInfoBuilder withSendingResult (bool sending = true ) const {
646+ return ASTExtInfoBuilder (
647+ sending ? (bits | SendingResultMask) : (bits & ~SendingResultMask),
648+ clangTypeInfo, globalActor, thrownError, lifetimeDependenceInfo);
653649 }
654650
655651 [[nodiscard]]
@@ -765,9 +761,7 @@ class ASTExtInfo {
765761
766762 constexpr bool isThrowing () const { return builder.isThrowing (); }
767763
768- constexpr bool hasTransferringResult () const {
769- return builder.hasTransferringResult ();
770- }
764+ constexpr bool hasSendingResult () const { return builder.hasSendingResult (); }
771765
772766 constexpr DifferentiabilityKind getDifferentiabilityKind () const {
773767 return builder.getDifferentiabilityKind ();
@@ -838,9 +832,8 @@ class ASTExtInfo {
838832 return builder.withAsync (async).build ();
839833 }
840834
841- [[nodiscard]] ASTExtInfo
842- withTransferringResult (bool transferring = true ) const {
843- return builder.withTransferringResult (transferring).build ();
835+ [[nodiscard]] ASTExtInfo withSendingResult (bool sending = true ) const {
836+ return builder.withSendingResult (sending).build ();
844837 }
845838
846839 [[nodiscard]]
0 commit comments