mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[move-only] Rename mark_must_check -> mark_unresolved_non_copyable_value.
I was originally hoping to reuse mark_must_check for multiple types of checkers. In practice, this is not what happened... so giving it a name specifically to do with non copyable types makes more sense and makes the code clearer. Just a pure rename.
This commit is contained in:
@@ -1348,8 +1348,9 @@ public:
|
||||
// project_box is not normally an access projection but we treat it
|
||||
// as such when it operates on unchecked_take_enum_data_addr.
|
||||
|| isa<ProjectBoxInst>(projectedAddr)
|
||||
// Ignore mark_must_check, we just look through it when we see it.
|
||||
|| isa<MarkMustCheckInst>(projectedAddr)
|
||||
// Ignore mark_unresolved_non_copyable_value, we just look through
|
||||
// it when we see it.
|
||||
|| isa<MarkUnresolvedNonCopyableValueInst>(projectedAddr)
|
||||
// Ignore moveonlywrapper_to_copyable_addr and
|
||||
// copyable_to_moveonlywrapper_addr, we just look through it when
|
||||
// we see it
|
||||
@@ -1872,7 +1873,7 @@ AccessPathDefUseTraversal::visitSingleValueUser(SingleValueInstruction *svi,
|
||||
}
|
||||
|
||||
case SILInstructionKind::DropDeinitInst:
|
||||
case SILInstructionKind::MarkMustCheckInst: {
|
||||
case SILInstructionKind::MarkUnresolvedNonCopyableValueInst: {
|
||||
// Mark must check goes on the project_box, so it isn't a ref.
|
||||
assert(!dfs.isRef());
|
||||
pushUsers(svi, dfs);
|
||||
|
||||
Reference in New Issue
Block a user