Skip to content

Commit fd1e119

Browse files
authored
Merge pull request #40467 from atrick/fix-autodiff-ownership
Fix OperandOwnership for AutoDiff builtins.
2 parents d03b23c + 81219ca commit fd1e119

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/SIL/IR/OperandOwnership.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -856,9 +856,8 @@ BUILTIN_OPERAND_OWNERSHIP(InteriorPointer, DestroyDefaultActor)
856856

857857
BUILTIN_OPERAND_OWNERSHIP(InteriorPointer, InitializeDistributedRemoteActor)
858858

859-
// FIXME: Why do these reqiuire a borrowed value at all?
860-
BUILTIN_OPERAND_OWNERSHIP(ForwardingBorrow, AutoDiffAllocateSubcontext)
861-
BUILTIN_OPERAND_OWNERSHIP(ForwardingBorrow, AutoDiffProjectTopLevelSubcontext)
859+
BUILTIN_OPERAND_OWNERSHIP(PointerEscape, AutoDiffAllocateSubcontext)
860+
BUILTIN_OPERAND_OWNERSHIP(PointerEscape, AutoDiffProjectTopLevelSubcontext)
862861

863862
// FIXME: ConvertTaskToJob is documented as taking NativePointer. It's operand's
864863
// ownership should be 'TrivialUse'.

0 commit comments

Comments
 (0)