File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -88,8 +88,8 @@ SILValue stripBorrow(SILValue V);
88
88
// ===----------------------------------------------------------------------===//
89
89
90
90
// / Return a non-null SingleValueInstruction if the given instruction merely
91
- // / copies the value of its first operand, possibly changing its type or
92
- // / ownership state, but otherwise having no effect.
91
+ // / copies or moves the value of its first operand, possibly changing its type
92
+ // / or ownership state, but otherwise having no effect.
93
93
// /
94
94
// / The returned instruction may have additional "incidental" operands;
95
95
// / mark_dependence for example.
Original file line number Diff line number Diff line change @@ -256,6 +256,7 @@ SingleValueInstruction *swift::getSingleValueCopyOrCast(SILInstruction *I) {
256
256
case SILInstructionKind::BeginBorrowInst:
257
257
case SILInstructionKind::BeginAccessInst:
258
258
case SILInstructionKind::MarkDependenceInst:
259
+ case SILInstructionKind::MoveValueInst:
259
260
return cast<SingleValueInstruction>(I);
260
261
}
261
262
}
You can’t perform that action at this time.
0 commit comments