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:
@@ -3838,7 +3838,7 @@ bool SILParser::parseSpecificSILInstruction(SILBuilder &B,
|
||||
break;
|
||||
}
|
||||
|
||||
case SILInstructionKind::MarkMustCheckInst: {
|
||||
case SILInstructionKind::MarkUnresolvedNonCopyableValueInst: {
|
||||
StringRef AttrName;
|
||||
if (!parseSILOptional(AttrName, *this)) {
|
||||
auto diag = diag::sil_markmustcheck_requires_attribute;
|
||||
@@ -3846,7 +3846,7 @@ bool SILParser::parseSpecificSILInstruction(SILBuilder &B,
|
||||
return true;
|
||||
}
|
||||
|
||||
using CheckKind = MarkMustCheckInst::CheckKind;
|
||||
using CheckKind = MarkUnresolvedNonCopyableValueInst::CheckKind;
|
||||
CheckKind CKind =
|
||||
llvm::StringSwitch<CheckKind>(AttrName)
|
||||
.Case("consumable_and_assignable",
|
||||
@@ -3869,7 +3869,7 @@ bool SILParser::parseSpecificSILInstruction(SILBuilder &B,
|
||||
if (parseSILDebugLocation(InstLoc, B))
|
||||
return true;
|
||||
|
||||
auto *MVI = B.createMarkMustCheckInst(InstLoc, Val, CKind);
|
||||
auto *MVI = B.createMarkUnresolvedNonCopyableValueInst(InstLoc, Val, CKind);
|
||||
ResultVal = MVI;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user