[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:
Michael Gottesman
2023-08-30 15:47:28 -07:00
parent 52c732fa92
commit 37d60a08bb
85 changed files with 1106 additions and 974 deletions

View File

@@ -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);