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:
@@ -1537,7 +1537,7 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
Attr = unsigned(MVI->getAllowDiagnostics()) |
|
||||
(unsigned(MVI->isLexical() << 1)) |
|
||||
(unsigned(MVI->hasPointerEscape() << 2));
|
||||
} else if (auto *I = dyn_cast<MarkMustCheckInst>(&SI)) {
|
||||
} else if (auto *I = dyn_cast<MarkUnresolvedNonCopyableValueInst>(&SI)) {
|
||||
Attr = unsigned(I->getCheckKind());
|
||||
} else if (auto *I = dyn_cast<MarkUnresolvedReferenceBindingInst>(&SI)) {
|
||||
Attr = unsigned(I->getKind());
|
||||
@@ -1551,8 +1551,9 @@ void SILSerializer::writeSILInstruction(const SILInstruction &SI) {
|
||||
writeOneOperandLayout(SI.getKind(), Attr, SI.getOperand(0));
|
||||
break;
|
||||
}
|
||||
case SILInstructionKind::MarkMustCheckInst: {
|
||||
unsigned Attr = unsigned(cast<MarkMustCheckInst>(&SI)->getCheckKind());
|
||||
case SILInstructionKind::MarkUnresolvedNonCopyableValueInst: {
|
||||
unsigned Attr =
|
||||
unsigned(cast<MarkUnresolvedNonCopyableValueInst>(&SI)->getCheckKind());
|
||||
writeOneOperandExtraAttributeLayout(SI.getKind(), Attr, SI.getOperand(0));
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user