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:
@@ -1068,14 +1068,14 @@ ManagedValue SILGenBuilder::createGuaranteedCopyableToMoveOnlyWrapperValue(
|
||||
return ManagedValue::forBorrowedObjectRValue(mdi);
|
||||
}
|
||||
|
||||
ManagedValue
|
||||
SILGenBuilder::createMarkMustCheckInst(SILLocation loc, ManagedValue value,
|
||||
MarkMustCheckInst::CheckKind kind) {
|
||||
ManagedValue SILGenBuilder::createMarkUnresolvedNonCopyableValueInst(
|
||||
SILLocation loc, ManagedValue value,
|
||||
MarkUnresolvedNonCopyableValueInst::CheckKind kind) {
|
||||
assert((value.isPlusOne(SGF) || value.isLValue() ||
|
||||
value.getType().isAddress()) &&
|
||||
"Argument must be at +1 or be an address!");
|
||||
CleanupCloner cloner(*this, value);
|
||||
auto *mdi = SILBuilder::createMarkMustCheckInst(
|
||||
auto *mdi = SILBuilder::createMarkUnresolvedNonCopyableValueInst(
|
||||
loc, value.forward(getSILGenFunction()), kind);
|
||||
return cloner.clone(mdi);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user