Skip to content

Commit 5991dc5

Browse files
committed
[Gardening] Clarified move_value comment.
It's not and shouldn't become a forwarding consume. It introduces a separate lifetime.
1 parent d2c8ede commit 5991dc5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/SIL/IR/OperandOwnership.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -294,8 +294,7 @@ OPERAND_OWNERSHIP(DestroyingConsume, DestroyValue)
294294
OPERAND_OWNERSHIP(DestroyingConsume, EndLifetime)
295295
OPERAND_OWNERSHIP(DestroyingConsume, BeginCOWMutation)
296296
OPERAND_OWNERSHIP(DestroyingConsume, EndCOWMutation)
297-
298-
// TODO: Should this be a forwarding consume.
297+
// The move_value instruction creates a distinct lifetime.
299298
OPERAND_OWNERSHIP(DestroyingConsume, MoveValue)
300299

301300
// Instructions that move an owned value.

0 commit comments

Comments
 (0)